Vim 符号栏切换

标签 vim

在 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/

相关文章:

vim - 允许 vim snipMate 片段处理不同的文件类型

vim - 为什么我的跳转列表不起作用?

vim - 如何以交互方式隐藏当前行的下 n 行

vim - 如何连接两行并删除 Vim 中不必要的空格

vim - 有没有可以预览 Markdown 文件的 Vim 插件?

windows - 可视 block 模式不选择整行

vim - 防止VIM中的:make发出警告

vim - 突出显示线程应用程序的日志

vim - 我可以在 VIM 中使用 SPACE 作为 map 领导者吗?

ruby-on-rails - 将 CSV 转换为数组?