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

How to fix the cursor style? #12

Closed JamesKid closed 6 years ago

JamesKid commented 6 years ago

How to fix the cursor style? I don't like the underline style, i love backgroundcolor style.

itchyny commented 6 years ago

Configure CursorWord[01] highlight colors. The difference of 0 and 1 is that CursorWord1 is used for the word in the current line if you enable the cursorline option.

let g:cursorword_highlight = 0
autocmd Colorscheme * highlight CursorWord0 ctermbg=52 guibg=#5f0000
autocmd Colorscheme * highlight CursorWord1 ctermbg=52 guibg=#5f0000