在 Vim 中定义符号时,屏幕左侧会出现一列。
来自 Vim 帮助:
When signs are defined for a file, Vim will automatically add a column of two
characters to display them in. When the last sign is unplaced the column
disappears again.
是否可以在仍然定义标志的情况下移除该列?
理想情况下,我想打开/关闭该列。
最佳答案
如果您使用 Vim 8.0 或更新版本(或 NeoVim),现在这是一个简单的设置:
$ vim "+help signcolumn" "+only"
例如,
:set scl=no " force the signcolumn to disappear
:set scl=yes " force the signcolumn to appear
:set scl=auto " return the signcolumn to the default behaviour
关于Vim 符号栏切换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18319284/