Wednesday, February 21, 2018

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

On Mi, 21 Feb 2018, Igor Forca wrote:

> @ZyX, I tested:
> 1. c is ASCII character also ]c can be typed in. I actually do not need
> mapping, I would just like to get ]c working. I did the mapping just to test if
> something is wrong with the keyboard.
>
> 2. Just to make a simple test I created two files with content.
> a) create files
> file1:
> aaa bbb
>
> file2:
> aaa ccc
>
> b) open Vim with: gvim -u NONE -N
> c) :e file1
> d) :vert diffsp file2
> e) ]c --> it does nothing. I expect cursor jumps to first letter of bbb.

Add a leading newline on both files first. Put you cursor on the first
line and type ]c. You will note, the cursor jumps to the beginning of
line 2. It there are no further differences, the command does nothing
and beeps I think. Note, it won't jump to the b/c part, e.g. to the char
that is actually different



Best,
Christian
--
Ein deutsches Wort mit 6 'TZ': Mortzatzventzkrantzkertzenglantz.

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