VIM highlight the current row and only show the underline problem solution

Source: Internet
Author: User
VIM highlight the current row only displays the underline problem solution in the VIM configuration, there is a command to highlight the current row/column, but I do not know why, VIM on my computer highlights the current line with only one underline, but GVIM is normal. I searched the internet for half a day and finally did not find it... VIM highlight the current row only displays the underline problem solution in the VIM configuration, there is a command to highlight the current row/column, but I do not know why, VIM on my computer highlights the current line with only one underline, but GVIM is normal. I searched the internet for half a day and finally did not find a solution. After thinking about it, I had to go back to the next step and solve the problem in a stupid way. First, the configuration commands for highlighting columns in VIMRC are: set cursorline and set cursorcolumn, but some of them may be abnormal, just like I only display one underline. In fact, the highlighted colors can be edited freely: set the color of the highlighted line: hi CursorLine cterm = NONE ctermbg = black ctermfg = green guibg = NONE guifg = NONE set the color of the highlighted column: hi CursorColumn cterm = NONE ctermbg = black ctermfg = green guibg = NONE guifg = NONE where ctermbg sets the background color, ctermfg sets the foreground color, and guibg sets the background color of the underline, guifg is the prefix of an underline. "=" Is followed by the color. you can change them to the color you like. NONE indicates the default value. To avoid the underline, you only need to set the last two items to NONE.

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.