Monday, March 18, 2019

Re: How to keep the cursorline consistent in vim diff?

On Saturday, March 16, 2019 at 10:20:15 AM UTC-4, Bram Moolenaar wrote:

> I cannot reproduce the problem. Please give a step-by-step example.
> And what is your Vim version?
>

Vim 8.1. I was able to fix my issue by adding the following to my .vimrc:

" {{{ Vim Diff Options
if &diff

" Only have to use just the bracket keys to go to the next difference.
nnoremap ] ]c
nnoremap [ [c

" dp will send middle pane changes to right pane and then immediately
" update.
nnoremap dp :diffput 3 <bar> :diffupdate<cr>

" Make sure cursor is always in the middle.
set scrolloff=999
endif
" }}}

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

Post a Comment