Saturday, September 27, 2014

Re: Patch 7.4.391 why?

Thank you for your help. I also tried a workaround like this.

au WinEnter * call SetCursorLine(1)
au WinLeave * call SetCursorLine(0)
function! SetCursorLine(n)
let &cursorline = a:n
au! CursorMoved
if a:n && &diff && winnr('$') >= 2
au CursorMoved * let &cursorline = diff_hlID('.', 1) != hlID("DiffChange") && diff_hlID('.', 1) != hlID("DiffText")
endif
endfunction


However, my basic question is this patch is really reasonable or not.
We can still see the highlitings of hlsearch and matchparen even if cursorline in on.
But why DiffChange and DiffText have to be hidden?
It looks incompatible.
I still want to see Diff highlightings in diff mode.

Is it possible to have a new setting option like cursorline's priority?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: