itchyny / vim-cursorword

Underlines the word under the cursor
http://www.vim.org/scripts/script.php?script_id=5100
MIT License
611 stars 36 forks source link

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

Closed phongvcao closed 9 years ago

phongvcao commented 9 years ago

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.

itchyny commented 9 years ago

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

itchyny commented 9 years ago

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.

phongvcao commented 9 years ago

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