itchyny / vim-cursorword

Underlines the word under the cursor

Home Page:http://www.vim.org/scripts/script.php?script_id=5100

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improperly highlighted when used with :set colorcolumn

nowox opened this issue · comments

I've asked a question related to this Plugin here:

https://vi.stackexchange.com/questions/12158/improperly-highlighted-when-used-with-cursorcolumn

I am wondering if this can be an issue of vim-cursorword

NOTE: Perhaps this is related to this w0ng/vim-hybrid#17

The vim-cursorword only underlines the word and it works fine with colorsolumn. I think the problem is in vim-interestingwords, while I did not have time to investigate.

I have to investigate a bit though.

Can you test with let g:cursorword = 0? This disables the plugin.

It's interesting, just avec your plugin I have the issue

2017-04-20_21-36-26

And after disabling the plugin it works:

2017-04-20_21-37-30

I am pretty sure the problem comes from w0ng/vim-hybrid, but I don't know what could be the issue.

I tested with vim-hybrid but it works fine.
screen shot 2017-04-21 at 10 18 25 am

The issue doesn't appear on every keywords. On my previous example, only "white" keywords are affected by the issue.

Still does not reproduce for me...
screen shot 2017-04-21 at 4 59 16 pm

Perhaps you don't have vim8. I just tried on my Ubuntu:

ubuntu

Could you try with:

  • VIM - Vi IMproved 8.0
  • Same .vimrc as proposed
  • Make sure termguicolors is enabled and your terminal support true colors.

I have tested with the following .vimrc with 8.0.589 but still does not reproduce for me.

set nocompatible
filetype off
set runtimepath^=~/.vim/miv/cursorword
set termguicolors
set cursorcolumn
filetype plugin indent on
syntax enable
colorscheme hybird

I am afraid that if you use the wrong colorscheme you won't reproduce the issue. It is hybrid not hybird

My bad, but still not reproducable for me. Please paste the result of :hi Normal and :hi CursorColumn.