autocmd terminal set signcolumn=no

10 views
Skip to first unread message

M Kelly

unread,
May 15, 2018, 4:49:50 PM5/15/18
to vim_use
Hi,

I set signcolumn=yes in my .vimrc.
When starting a terminal the sign column is not displayed, but then going into normal mode for this terminal shows it again.
I tried this -

au BufWinEnter * if &buftype == 'terminal' | set signcolumn=no | endif

but it does not work.
Any idea how to automatically set signcolumn to no for new terminals ?

If I manually, once already in the terminal, use <C-w>:set signcolumn=no then I do not get the sign column when switching into normal mode for this terminal.

thx,
mark

M Kelly

unread,
May 15, 2018, 5:01:34 PM5/15/18
to vim_use
Hi,

I just read about the TerminalOpen event, when I use:

au TerminalOpen * set signcolumn=no

it works :-)

thx,
mark

Reply all
Reply to author
Forward
0 new messages