Questions tagged [signs]

Allow placement of a 'sign' in the left-hand side of the window and definition of a highlight which will be applied to that line.

Filter by
Sorted by
Tagged with
6 votes
1 answer
2k views

How to show the sign column to the right side of the line number column?

I want Vim's sign column displayed to the right side of the line number column, I have it by default on the left. Here is a screenshot showing the sign column enabled and showing a + to indicate a ...
0 votes
1 answer
55 views

What is sign_getplaced? And how I use it?

Background As regards the usecase, I have written this plugin, named vim-softwrap to allow showing the current line wrapped on top of the real line when nowrap is active. It's a bit like having wrap ...
2 votes
1 answer
758 views

GitGutter sign not working

I have airblade/vim-gitgutter installed via Vundle. Somehow even with minimal .vimrc vim-gitgutter signs aren't working. My minimal .vimrc is given below, is there any problem there? Any help will be ...
1 vote
0 answers
78 views

How can I highlight the line number with diffadd and diffadd and diffdelete

I want line numbers to be highlighted for diff files depending on added lines and removed lines. For added lines, the line number should be green. For removed lines, the line number should be red. I ...
1 vote
0 answers
302 views

Sign column font is cut off

I have an issue where the signs in my sign column are cut off in the middle (screenshot below). Changing the Guifont or the font size doesn't seem to matter. It looks fine in terminal neovim. I am ...
3 votes
2 answers
1k views

change fold sign character

I know per my question remove trailing dashes in foldtext that I can remove the trailing dashes from collapsed fold lines. When a fold is 'open', the sign column has pipe characters '|'. I looked at ...
2 votes
1 answer
267 views

Is it safe to define more than 120 signs?

I am working on a plugin that could potentially define more than 120 different signs. The vim / neovim documentation specifies that you can define about 120 signs (not sure why this number and why so ...
3 votes
1 answer
198 views

Vim does not call functions correctly when wrapped in another function

Please consider these 3 small functions: " place sign >> at line 10 function PlaceSign() call sign_define('a', {'text': '>>', 'texthl': 'LineNr'}) call sign_place(10, 'g1', 'a', ...
4 votes
2 answers
730 views

Can I force python-mode's (or syntastic's) error flags over the line number columns?

When syntastic or python-mode finds an error in my python file, they create a new column at the left-hand side of the window with flags at the lines where the errors are: This new column not only ...
0 votes
1 answer
108 views

VimScript - Save specific positions consistently even after buffer changes

I want to save multiple positions in vimscript, and make sure that they stay at the right place, even after the buffer changes Here are the solutions I found so far, and why I want something else: ...
3 votes
2 answers
4k views

Change color of signs in SignColumn/Gutter

I have set my sign column background using hi SignColumn ctermbg=236 in my colorscheme file. However, it seems that the background colors for where there are signs has not been changed, and is the ...
0 votes
1 answer
356 views

How to display a sign before the line number gutter?

I'd like to display some characters in left side of the line number gutter just like the vim-syntastic plugin does to show the errors. back when I was starting to learn vim I saw a plugin doing just ...
6 votes
1 answer
708 views

Is there a way to quickly jump to signs?

Vim 8 has introduced the sign feature, that allows people to mark locations within a file. I noticed there is a :sign jump command to jump to a sign, but it requires a buffer and an id as an argument,...
1 vote
1 answer
184 views

Which highlight-group should I use for :sign define x linehl?

The sign help says: linehl={group} Highlighting group used for the whole line the sign is placed in. Most useful is defining a background color. Is there a special group I can use (...
5 votes
1 answer
1k views

How can I keep the gutter width constant when using YouCompleteMe?

YouCompleteMe puts symbols in the "gutter" (left of the editor) for errors: The problem is that the gutter shifts the whole editor over, and it is only present when there is at least one error. ...
5 votes
2 answers
211 views

Make column for signs permanent in gVim

I just started using ycm with clang-completer, which apparently can also do syntax checking. It instantly reminded me why I avoided syntax checking in gVim: As soon as an error is found, the signs ...
9 votes
2 answers
435 views

Is it possible to assign a sign to "Todo" group?

Is it possible to add a sign to be displayed in the signs column whenever the line has a ToDo group (ToDo,FIXME...). Tweaking my colorscheme I changed the highlight of the Todo group, but would like ...