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

augroup cursorword has a bug #3

Closed tenfyzhong closed 9 years ago

tenfyzhong commented 9 years ago

augroup cursorword autocmd! autocmd VimEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END

should be

augroup cursorword autocmd! autocmd VimEnter,WinEnter,BufEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END

itchyny commented 9 years ago

No. Defining a highlight is enough on Vim's startup and when user changes the colorscheme.