vimscript评论打破语法突出显示

时间:2014-12-03 01:20:36

标签: vim

我在我的vimrc文件源代码中有以下代码

set textwidth=80 " Column at which text will be auto-rolled to next line
set winwidth=80 " this is the desired minimum, not absolute, of any new window in vim.
set splitbelow " Open new split panes to right and bottom, which feels more natural
set splitright " Open new split panes to right and bottom, which feels more natural
set ruler "always with the ruler
set laststatus=2 "always with the status line
set cmdheight=2 " command height taller
set vb " beeps for your eyes
set showmatch " show matching brackets
set number " show line numbers
set hlsearch | highlight Search cterm=underline " hilight search results while typing, underline after enter.
set cursorline " hilight current line
set showtabline=2 "always show tabs at top
set scrolloff=3 " keep more context when scrolling off the end of a buffer
set showcmd " show commands as they are entered
set wildmenu | set wildmode=list:longest,full  " autocomplete settings

文件中的交替行未正确突出显示。我可以通过在每个评论行的末尾添加一个额外的引用来解决这个问题,但我不认为这是最好的方法。

我该怎么做才能解决这个问题?见下面的img

strange syntax

0 个答案:

没有答案