Why can't I change vim syntax highlighting via local vimrc file? -
i trying customize vim highlighting placing additional instructions local config $project/.lvimrc
, managed https://github.com/embear/vim-localvimrc plugin.
unfortunately, seems commands like
syntax match operator "\<myop\>"
located in .lvimrc
ignored silently vim. typing command in command line works expected. other commands .lvimrc
work. may stop vim interpreting local highlighting correctly?
it problem loading order, i.e., .lvimrc
loaded, filetype syntax loaded , overwrites .lvimrc
syntax commands. check including echom
statements on both files.
also notice local vimrc not standard way of customizing syntax highlight. vim faq 24.11:
you should not modify syntax files supplied vim add extensions. when install next version of vim, lose changes. instead should create file under ~/.vim/after/syntax directory same name original syntax file , add additions file. more information, read |mysyntaxfile-add| |'runtimepath'|
Comments
Post a Comment