Here is a small tip can help you a little bit.
put this into your ".vimrc" file
" display the syntax name under the cursor
map <F12> :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name")
For the next time, when you met some syntax highlight error, you can key in <F12> at the error place, VIM will tell you "what kind syntax ID that it is thing under the given position".
Keep fun! :)
没有评论:
发表评论