What keys did I press to cause ">>" to appear in the left margin?
Wh开发者_如何学Goat Vim command did I invoke to cause a top-to-bottom gray bar with the character sequence ">>" in the current line's left margin to appear? (See screenshot below)
This happens every once and a while but I'm usually typing too quickly to realize what clumsy key combo caused it.
It is probably a signs column. Signs API is very dumb, so there aren't lots of plugins using it, and it is even worse that verbose sign list
won't show you place where particular sign is defined. On my system somebody has defined sign named es_sign
that has text >>
and highlighting Error
(yes, just like on your image) and grep -rw es_sign /usr/share/vim
shows that it was defined by errsign
plugin. According to this plugin help, to get this sign placed you should type \es
. Note that you may actually want to grep not just /usr/share/vim
, but ~/.vim
, ~/vim-addons
or /path/to/directory/with/vim/plugins
as well.
// By the way, thanks that you made me find another package that was left out unhandled by package manager after I reinstalled the system.
精彩评论