Saturday, September 27, 2014

Re: Patch 7.4.391 why?

On Saturday, September 27, 2014 2:20:25 AM UTC-5, Rick Howe wrote:
> I have noticed recently this patch.
> Patch 7.4.391. no 'cul' highlight with cursor on a line with diff highlight.
> It becomes often disturb my job because seeing the differences is much more important than current line in diff mode. Why is this patch reasonable? Is it possible to have an opiton?

Then turn off cursorline in diff mode. You could even make your own commands if it bothers you too much, to do both the diff command and the cursorline together:

command! -bar -nargs=1 -complete=file DiffSplit setl nocursorline | diffsplit <args> | setl nocursorline
command! -bar DiffThis setl nocursorline | diffthis
command! -bang -bar DiffOff call DoDiffOff(<bang>0)

function! DoDiffOff(bang)
if a:bang
diffoff!
windo if &diff | setl cursorline | endif
else
diffoff
setl cursorline
endif
endfun

The point is, there was NO way to show cursorline in a diff window. Now you can see cursorline in a diff window also. You can always turn cursorline off, on the other hand, if you don't want to see it.

In fact the Vim help recommends not keeping it on all the time anyway (well, technically it just says it will slow your Vim down).

--
--
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: