This article transferred from: Http://www.jianshu.com/p/b8763c23ea64
Basic settings
There are two ways to set up certain and columns
Set Cursorcolumn Set Cursorline " or Set CUC Set Cul
I recommend that you use the first way , so that you can see the configuration to know what to do, and add comments , because as the configuration is more and more, you may forget that the configuration is used to do.
Beautify
We are now able to quickly separate the cursor position, but the effect is less than we ultimately need, because the current row is a horizontal line, it is sometimes difficult to distinguish between the English comma and period, on this basis we need to add a configuration
Highlight Cursorline cterm=none ctermbg=black ctermfg=green guibg=none guifg=nonehighlight CursorColumn cterm =none ctermbg=black ctermfg=green guibg=none guifg=none
Highlght is mainly used for color matching, including the personalized configuration of syntax highlighting. Available via: H Highlight, view details
cursorline and cursorcolumn each represent the current row
The cterm represents a style set for native vim, and setting to none indicates that the setting can be customized.
CTERMBG Setting the terminal vim background color
CTERMFG Setting the terminal vim foreground color
GUIBG and GUIFG are set gvim background color and front color, I usually use the terminal to open vim, so just set the style under the terminal
I follow the above tutorial, set the row and column in the ~/.VIMRC, but feel that a separate row highlighting is better, the column is also highlighted a little glare.
Thank you, author @xinxingzhao.
Vim configuration: Highlight the row of the cursor