![]() Still, seeing red texts? Then you may have to disable ErrorMsg it as well. Step 2: To stop vim using Error groups, type: :hi Error NONE Look out for guifg & guibg, which stands for GUI foreground and GUI background respectively. Last set from /usr/share/vim/vim74/syntax/syncolor.vim Vim will display the values set for Error the highlight group as shown below: Error xxx term=reverse cterm=bold ctermfg=7 ctermbg=1 guifg=WhiteĮrror xxx term=reverse cterm=bold ctermfg=7 ctermbg=1 guifg=White Step 1: Open the file and type the below in last-line mode (ESC & semi-colon). So try to highlight groups as shown below. However, highlighting of error messages is done with the help of Error and ErrorMsg highlight groups. For example, vim can understand comments and highlight those texts in blue color and variables in green, etc…Similarly, errors are generally highlighted in red color and it looks like vim does not know how the syntax should be handled for /etc/sysconfig/named. Generally, vim has plugins to understand the syntax of programming languages and certain configuration files. However, there’s a reason for vim highlighting texts in red color. Hi Rajan, I tried to replicate the issue in the Techglimpse lab, but couldn’t reproduce the same. I’m able to edit the file, save and do all vim operations without any issue, but still the red texts is really annoying. I’m seeing a strange behavior of vim editor that highlights all texts in red color and it happens only when /etc/sysconfig/named file is opened. His issue is why vim highlights texts in red? Rajan, one of the regular readers at Techglimpse. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |