Vim configuration: Highlight the row of the cursor

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.