itchyny/vim-cursorword

Error detected while processing function cursorword#matchadd: No such highlight group name: CursorWord1

Closed this issue · 3 comments

I recently updated my vim-cursorword and received the following error message when starting vim:

Error detected while processing function cursorword#matchadd:
line 14:
No such highlight group name: CursorWord1

I hope the error would be fixed ASAP. For now I will have to disable the plugin altogether.

Please paste the minimal vimrc to reproduce the error, otherwise I cannot investigate the reason.

vimrc:

set nocompatible
filetype off
set rtp+=/path/to/cursorword
filetype plugin on
syntax enable

Start Vim with

vim -u /path/to/vimrc

The plugin works well for me.

@itchyny okay I got the plugin work now. The problem is in my BufWinEnter * :NERDTree... command, it probably caused some conflicts with vim-cursorword.