Re: Sign column always present

283 views
Skip to first unread message

Christian Brabandt

unread,
Aug 22, 2013, 2:49:08 PM8/22/13
to vim...@googlegroups.com, vim...@googlegroups.com

[redirected to vim-dev, it is better suited there]
On Do, 22 Aug 2013, Andrew Stewart wrote:

> On 21 Aug 2013, at 19:05, Josh wrote:
> > This is already a feature
> > request:https://code.google.com/p/vim/issues/detail?id=117&q=Sign .

Bram,
attached patch adds a 'signcolumn' option, that let's the user either
always show the signcolumn (value=yes), or never show the column
(value=no) or the default only show, when there exists a sign
(value=auto).

regards,
Christian
--
Erst machen die Menschen etwas und dann sind sie es.
-- Karin Berwind
set_signcolumn.diff

Bram Moolenaar

unread,
Aug 22, 2013, 5:07:17 PM8/22/13
to Christian Brabandt, vim...@googlegroups.com, vim...@googlegroups.com

Christian Brabandt wrote:

> [redirected to vim-dev, it is better suited there]
> On Do, 22 Aug 2013, Andrew Stewart wrote:
>
> > On 21 Aug 2013, at 19:05, Josh wrote:
> > > This is already a feature
> > > request:https://code.google.com/p/vim/issues/detail?id=117&q=Sign .
>
> Bram,
> attached patch adds a 'signcolumn' option, that let's the user either
> always show the signcolumn (value=yes), or never show the column
> (value=no) or the default only show, when there exists a sign
> (value=auto).

Thanks, I'll add it in the todo list.

--
hundred-and-one symptoms of being an internet addict:
115. You are late picking up your kid from school and try to explain
to the teacher you were stuck in Web traffic.

/// Bram Moolenaar -- Br...@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 ///

bo...@airbladesoftware.com

unread,
Jan 8, 2014, 4:04:32 AM1/8/14
to vim...@googlegroups.com, Christian Brabandt, vim...@googlegroups.com
On Thursday, 22 August 2013 23:07:17 UTC+2, Bram Moolenaar wrote:

> Christian Brabandt wrote:
> > > > request:https://code.google.com/p/vim/issues/detail?id=117&q=Sign .
> > Bram,
>
> > attached patch adds a 'signcolumn' option, that let's the user either
> > always show the signcolumn (value=yes), or never show the column
> > (value=no) or the default only show, when there exists a sign
> > (value=auto).
>
> Thanks, I'll add it in the todo list.

Just wondering whether there's an ETA on this patch?

Many thanks,
Andrew Stewart

Bram Moolenaar

unread,
Jan 8, 2014, 1:48:32 PM1/8/14
to bo...@airbladesoftware.com, vim...@googlegroups.com, Christian Brabandt, vim...@googlegroups.com
Nope. Depends on what other things get reported, how much time I can
spend on Vim and magic.

--
"Computers in the future may weigh no more than 1.5 tons."
Popular Mechanics, 1949

Christian Brabandt

unread,
Jul 29, 2016, 5:04:13 AM7/29/16
to vim...@googlegroups.com
On Mi, 08 Jan 2014, Bram Moolenaar wrote:
> Nope. Depends on what other things get reported, how much time I can
> spend on Vim and magic.

Here is an updated patch, that applies cleanly to current Vim.
Patch also available at
https://github.com/chrisbra/vim-mq-patches/blob/master/set_signcolumn

Since this is an old mail, I include the commit message here:
,----
| The 'signcolumn' option, which can have the values of yes,no,auto
| controls if a signcolumn will be drawn.
|
| By default, the value is auto, which is the old behaviour and means,
| only draw the signcolumn, if a sign has been placed. However, that means
| whenever previously there was no sign present and you place a new sign,
| this will shift the text to the right and whenever the last sign will be
| removed, the text will be shifted left again.
|
| Therefore, make a new option 'signcolumn' that the user can set so that
| either there will always be displayed a signcolumn (no matter whether
| there is a sign placed in the current window) or never (even if a sign
| is present). This prevents the ugly shifting of the text.
|
| Because of the shifting, popular plugins like vim-gitgutter have
| workaround the issue by always placing an dummy sign so that there will
| always be a (invisible) sign available. However it would be great not to
| rely on that ugly workaround.
`----

Mit freundlichen Grüßen
Christian
--
Sie glaubt an Gott, aber sie glaubt auch, daß das Radio wegen den
winzigen Leuten dadrin funktioniert.
-- Woody Allen (eigentlich: Woody Stewart)
set_signcolumn
Reply all
Reply to author
Forward
0 new messages