Vim split bar styling

亡梦爱人 提交于 2020-01-09 08:35:09

问题


How do I style or remove the grey bar that appears on window split?


回答1:


You'll need to edit your colorscheme. The highlight group is VertSplit.

If you want to get rid of the pipe characters you can set ctermbg and ctermfg to the same value.

Additional information on styling vertical split borders*:

*Taken from ib. answer below.

In order to get rid of | characters, one should rather change vertical separator using:

:set fillchars+=vert:\ 

(note the significant whitespace after the '\' character)




回答2:


I kind of tweak it a little to make it look like there is no splitbar with something like this

hi LineNr guibg=bg
set foldcolumn=2
hi foldcolumn guibg=bg
hi VertSplit guibg=bg guifg=bg

Note that I'm using gvim so I'm using guibg to change the background guifg to change the foreground with the same color of my vim's background, if you're not using a gui and you're on terminal vim you should change the guibg and guifg parameters for ctermbg and ctermfg



来源:https://stackoverflow.com/questions/9001337/vim-split-bar-styling

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!