Yegappan wrote:
> On Mon, Jul 1, 2019 at 7:57 AM Salman Halim <salmanhalim@gmail.com> wrote:
> >>
> >> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
> >> >
> >> > Hello,
> >> >
> >> > When setting 'signcolumn' to number, if I edit a file containing fewer
> >> > than ten lines and have a plug-in that shows marks as signs (or have
> >> > manually created signs), the signs are occasionally three columns
> >> > wide, thus wider than the number column. This breaks editing, such as
> >> > pressing x to remove a character (it removes the wrong character).
> >> >
> >>
> >> Can you post the sign definition? When you say "occasionally", do you
> >> know which operation or movement triggers this?
> >>
> >> Thanks,
> >> Yegappan
> >
> >
> > It's a trivial case.
> > Start with an empty file: gvim -u NONE -U NONE
> > (I use Windows, gvim 8.1-1608)
> >
> > :set number numberwidth=1 signcolumn=number
> >
>
> As the sign text takes two columns, the minimum supported value for
> 'numberwidth' is 3 with 'signcolumn' set to 'number'.
>
> When 'signcolumn' is set to 'number', I think we should change the value
> of 'numberwidth' to a minimum of 3 (if it is less than 3)?
Yes, can be added to number_width().
Would appreciate if you add a test.
--
You cannot propel yourself forward by patting yourself on the back.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/201907011856.x61IuXkx031979%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.
Monday, July 1, 2019
Re: Problem with signcolum=number
--
Salman
Salman
On Mon, Jul 1, 2019, 11:18 Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
> It's a trivial case.
> Start with an empty file: gvim -u NONE -U NONE
> (I use Windows, gvim 8.1-1608)
>
> :set number numberwidth=1 signcolumn=number
>
As the sign text takes two columns, the minimum supported value for
'numberwidth' is 3 with 'signcolumn' set to 'number'.
When 'signcolumn' is set to 'number', I think we should change the value
of 'numberwidth' to a minimum of 3 (if it is less than 3)?
- Yegappan
Yup. That's effectively what I suggested in my original email message.
Salman
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEe8t3fD%3D%3Df17eSAb_FkZh5OF_2UzoUL066LAByeCQefQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Problem with signcolum=number
Hi,
On Mon, Jul 1, 2019 at 7:57 AM Salman Halim <salmanhalim@gmail.com> wrote:
>>
>> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
>> >
>> > Hello,
>> >
>> > When setting 'signcolumn' to number, if I edit a file containing fewer
>> > than ten lines and have a plug-in that shows marks as signs (or have
>> > manually created signs), the signs are occasionally three columns
>> > wide, thus wider than the number column. This breaks editing, such as
>> > pressing x to remove a character (it removes the wrong character).
>> >
>>
>> Can you post the sign definition? When you say "occasionally", do you
>> know which operation or movement triggers this?
>>
>> Thanks,
>> Yegappan
>
>
> It's a trivial case.
> Start with an empty file: gvim -u NONE -U NONE
> (I use Windows, gvim 8.1-1608)
>
> :set number numberwidth=1 signcolumn=number
>
As the sign text takes two columns, the minimum supported value for
'numberwidth' is 3 with 'signcolumn' set to 'number'.
When 'signcolumn' is set to 'number', I think we should change the value
of 'numberwidth' to a minimum of 3 (if it is less than 3)?
- Yegappan
>
> Add the sign (named piet) in the example off :help :sign with the line changed to 1 and no file.
> For me, the sign takes three columns, ">> ". Try typing on that line; the cursor should be off by one. Try hitting Escape and then hitting x. Again, off.
>
> Hope this clarifies,
>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7kBipVOsO%2BXik6rx4k7JsUgsMCG%3DF8bD-1faQpwnuHJSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jul 1, 2019 at 7:57 AM Salman Halim <salmanhalim@gmail.com> wrote:
>>
>> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
>> >
>> > Hello,
>> >
>> > When setting 'signcolumn' to number, if I edit a file containing fewer
>> > than ten lines and have a plug-in that shows marks as signs (or have
>> > manually created signs), the signs are occasionally three columns
>> > wide, thus wider than the number column. This breaks editing, such as
>> > pressing x to remove a character (it removes the wrong character).
>> >
>>
>> Can you post the sign definition? When you say "occasionally", do you
>> know which operation or movement triggers this?
>>
>> Thanks,
>> Yegappan
>
>
> It's a trivial case.
> Start with an empty file: gvim -u NONE -U NONE
> (I use Windows, gvim 8.1-1608)
>
> :set number numberwidth=1 signcolumn=number
>
As the sign text takes two columns, the minimum supported value for
'numberwidth' is 3 with 'signcolumn' set to 'number'.
When 'signcolumn' is set to 'number', I think we should change the value
of 'numberwidth' to a minimum of 3 (if it is less than 3)?
- Yegappan
>
> Add the sign (named piet) in the example off :help :sign with the line changed to 1 and no file.
> For me, the sign takes three columns, ">> ". Try typing on that line; the cursor should be off by one. Try hitting Escape and then hitting x. Again, off.
>
> Hope this clarifies,
>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7kBipVOsO%2BXik6rx4k7JsUgsMCG%3DF8bD-1faQpwnuHJSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Problem with signcolum=number
--
Salman
Salman
On Mon, Jul 1, 2019, 10:33 Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
Hi,
On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
>
> Hello,
>
> When setting 'signcolumn' to number, if I edit a file containing fewer
> than ten lines and have a plug-in that shows marks as signs (or have
> manually created signs), the signs are occasionally three columns
> wide, thus wider than the number column. This breaks editing, such as
> pressing x to remove a character (it removes the wrong character).
>
Can you post the sign definition? When you say "occasionally", do you
know which operation or movement triggers this?
Thanks,
Yegappan
It's a trivial case.
Start with an empty file: gvim -u NONE -U NONE
(I use Windows, gvim 8.1-1608)
:set number numberwidth=1 signcolumn=number
Add the sign (named piet) in the example off :help :sign with the line changed to 1 and no file.
For me, the sign takes three columns, ">> ". Try typing on that line; the cursor should be off by one. Try hitting Escape and then hitting x. Again, off.
Hope this clarifies,
Salman
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEfs7RhX3xwybz22%2BFo1v7tbQBWRY8h2eB%3DumBTm5%3DCVDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Problem with signcolum=number
Hi,
On Mon, Jul 1, 2019 at 7:33 AM Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
>
> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
> >
> > Hello,
> >
> > When setting 'signcolumn' to number, if I edit a file containing fewer
> > than ten lines and have a plug-in that shows marks as signs (or have
> > manually created signs), the signs are occasionally three columns
> > wide, thus wider than the number column. This breaks editing, such as
> > pressing x to remove a character (it removes the wrong character).
> >
>
> Can you post the sign definition? When you say "occasionally", do you
> know which operation or movement triggers this?
>
What is the 'numberwidth' option set to?
- Yegappan
>
> >
> > I was able to work around this by setting 'numberwidth' to a larger
> > number, but was wondering whether this could somehow be enforced as a
> > minimum if using signcolum set to number.
> >
> > Thank you,
> >
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7k0D4PMvZrZDWsCjfxPW_pSoEJ1R0UuOszjvVkmaqyVYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jul 1, 2019 at 7:33 AM Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
>
> On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
> >
> > Hello,
> >
> > When setting 'signcolumn' to number, if I edit a file containing fewer
> > than ten lines and have a plug-in that shows marks as signs (or have
> > manually created signs), the signs are occasionally three columns
> > wide, thus wider than the number column. This breaks editing, such as
> > pressing x to remove a character (it removes the wrong character).
> >
>
> Can you post the sign definition? When you say "occasionally", do you
> know which operation or movement triggers this?
>
What is the 'numberwidth' option set to?
- Yegappan
>
> >
> > I was able to work around this by setting 'numberwidth' to a larger
> > number, but was wondering whether this could somehow be enforced as a
> > minimum if using signcolum set to number.
> >
> > Thank you,
> >
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7k0D4PMvZrZDWsCjfxPW_pSoEJ1R0UuOszjvVkmaqyVYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Problem with signcolum=number
Hi,
On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
>
> Hello,
>
> When setting 'signcolumn' to number, if I edit a file containing fewer
> than ten lines and have a plug-in that shows marks as signs (or have
> manually created signs), the signs are occasionally three columns
> wide, thus wider than the number column. This breaks editing, such as
> pressing x to remove a character (it removes the wrong character).
>
Can you post the sign definition? When you say "occasionally", do you
know which operation or movement triggers this?
Thanks,
Yegappan
>
> I was able to work around this by setting 'numberwidth' to a larger
> number, but was wondering whether this could somehow be enforced as a
> minimum if using signcolum set to number.
>
> Thank you,
>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7nk34KjcdFyCPNr_Ci29Pox4N%3DkQNFiwwCOOkChBYR5-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jul 1, 2019 at 7:09 AM Salman Halim <salmanhalim@gmail.com> wrote:
>
> Hello,
>
> When setting 'signcolumn' to number, if I edit a file containing fewer
> than ten lines and have a plug-in that shows marks as signs (or have
> manually created signs), the signs are occasionally three columns
> wide, thus wider than the number column. This breaks editing, such as
> pressing x to remove a character (it removes the wrong character).
>
Can you post the sign definition? When you say "occasionally", do you
know which operation or movement triggers this?
Thanks,
Yegappan
>
> I was able to work around this by setting 'numberwidth' to a larger
> number, but was wondering whether this could somehow be enforced as a
> minimum if using signcolum set to number.
>
> Thank you,
>
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7nk34KjcdFyCPNr_Ci29Pox4N%3DkQNFiwwCOOkChBYR5-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Problem with signcolum=number
Hello,
-- When setting 'signcolumn' to number, if I edit a file containing fewer than ten lines and have a plug-in that shows marks as signs (or have manually created signs), the signs are occasionally three columns wide, thus wider than the number column. This breaks editing, such as pressing x to remove a character (it removes the wrong character).
I was able to work around this by setting 'numberwidth' to a larger number, but was wondering whether this could somehow be enforced as a minimum if using signcolum set to number.
Thank you,
--
Salman
Salman
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEeipLxY56763Wff697oxRijLPXSsRPVh8C9SjWBeUa8qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Posts (Atom)