On Fri, Feb 23, 2018 at 9:43 AM, Igor Forca wrote:
> @Arun, I have tested your code in deep. It is working perfectly. What I
> have found is little trouble in the case when first line include the change.
>
> File1:
> aaa ccc
> aaa ccc
>
> File2:
> aaa bbb
> aaa bbb
>
> If
Le vendredi 23 février 2018 18:43:35 UTC+1, Igor Forca a écrit :
> @Arun, I have tested your code in deep. It is working perfectly. What I have
> found is little trouble in the case when first line include the change.
>
> File1:
> aaa ccc
> aaa ccc
>
> File2:
> aaa bbb
> aaa bbb
>
> If cursor
@Arun, I have tested your code in deep. It is working perfectly. What I have
found is little trouble in the case when first line include the change.
File1:
aaa ccc
aaa ccc
File2:
aaa bbb
aaa bbb
If cursor is in file1 at first line first column, diff enabled and pressing ]x
I expect cursor to
I am not sure how my plugin, https://github.com/rickhowe/diffchar.vim, can help
you, but it provides ]b/[b/]e/[e keymaps to jump cursor around the exact
differences. Please try it.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you
@Arun, thanks a million for this script. ]x and [x work exactly what I want.
I also tested the ]c and it behaves the sames as ]x and [c behaves the same as
[x on my previous post samples. I actually only need ]x and [x behavior, but
just out of curiosity what suppose to be the difference
On Thu, Feb 22, 2018 at 9:26 AM, Arun wrote:
> On Wed, Feb 21, 2018 at 10:53 PM, Igor Forca wrote:
>
>> @Arun, thanks a lot for this code. I have performed two tests:
>>
>> TEST 1: LINES WITH NO DIFFERENCE BETWEEN TWO LINES WITH DIFFERENCES
>>
>> File1:
>>
On Wed, Feb 21, 2018 at 10:53 PM, Igor Forca wrote:
> @Arun, thanks a lot for this code. I have performed two tests:
>
> TEST 1: LINES WITH NO DIFFERENCE BETWEEN TWO LINES WITH DIFFERENCES
>
> File1:
> aaa aaa
> aaa bbb
> aaa aaa
> aaa bbb
>
> File2:
> aaa aaa
> aaa ccc
> aaa
@Arun, thanks a lot for this code. I have performed two tests:
TEST 1: LINES WITH NO DIFFERENCE BETWEEN TWO LINES WITH DIFFERENCES
File1:
aaa aaa
aaa bbb
aaa aaa
aaa bbb
File2:
aaa aaa
aaa ccc
aaa aaa
aaa ccc
Lines 2 and 4 are different. There are lines without difference between two
On Wed, Feb 21, 2018 at 5:27 AM, Igor Forca wrote:
> @Christian, thanks a lot for explanation. It looks like ]c jumps through
> lines and searches for changes (it skips the same lines in both files), but
> cursor is always placed on first character in line. Interesting. It
@Christian, thanks a lot for explanation. It looks like ]c jumps through lines
and searches for changes (it skips the same lines in both files), but cursor is
always placed on first character in line. Interesting. It looks I misunderstood
the help:
]c Jump forwards to the next start of a
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
@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
2018-02-21 12:43 GMT+03:00 Igor Forca :
> @ZyX, I did:
> 1. Start-up Vim in clean:
> gvim -u NONE -N
>
> 2. Open the first file:
> :e file1.txt
>
> 3. Diff mode second file:
> :vert diffsp file2.txt
>
> 4. Do the mapping you suggested:
> nnoremap a ]c
>
> 5. Press the a key and
@ZyX, I did:
1. Start-up Vim in clean:
gvim -u NONE -N
2. Open the first file:
:e file1.txt
3. Diff mode second file:
:vert diffsp file2.txt
4. Do the mapping you suggested:
nnoremap a ]c
5. Press the a key and nothing happens.
So still a problem.
By the way if mappings would be the problem
2018-02-21 11:45 GMT+03:00 Igor Forca :
> Hi,
> I have files with long lines and when doing diff it is time consuming to move
> to the diff change (marked red in vimdiff).
>
> I have searched the help:
> :h jumpto-diffs
>
> With explanation that:
> ]c
> should jump to the next
Hi,
I have files with long lines and when doing diff it is time consuming to move
to the diff change (marked red in vimdiff).
I have searched the help:
:h jumpto-diffs
With explanation that:
]c
should jump to the next start of the change.
But in my case this key shortcut does nothing.
I
16 matches
Mail list logo