Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

I've been spoiled by GUI diff tools like meld, kdiff3 etc. Now I'm stuck having to do some git diff'ing via a terminal. If I: git difftool --tool=vimdiff HEAD~ I get pairs of files which need to be ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
126 views

I cannot find what the highlight name (or highlight group) is to change the guifg and guibg colors of the top and bottom lines in vimdiff. (The bottom line above the statusline, that is). (More ...
Melvin Q. Watchpocket's user avatar
1 vote
2 answers
209 views

For mainframe modernization I'm using git to modify my Cobol programs. To compare two programs one in Dev stage and another in Prod stage, I would like to compare them only from column 1 to 72. I ...
RedGoldPhoenix's user avatar
3 votes
1 answer
151 views

I'm trying to configure vimdiff as a git merge tool, so my global git config contains the following lines: [merge] tool = gvimdiff guitool = gvimdiff [mergetool] prompt = true [mergetool &...
Barzi2001's user avatar
  • 1,866
3 votes
1 answer
69 views

I'm trying to find out in a script if the current cursor position is a block of lines that were added. Is this somehow possible using vim script? So far I tried to match for the background color of ...
Steven Thiel's user avatar
0 votes
1 answer
355 views

Is there a way to similary scroll to simultaneously go to next search instance on all split files? Currently I am using :windo // to search in all splits but pressing "n" only goes to next ...
rawat89's user avatar
  • 21
0 votes
2 answers
714 views

Problem description When merging two branches in git with conflicting files, git adds markers to the conflicting areas. For example, a file with conflict would look like this Some code <<<&...
Amro's user avatar
  • 140
4 votes
2 answers
656 views

I'm using vimdiff as tool when comparing with git difftool. I want to compare 2 commits with git difftool <commit1> <commit2>. Today, I have to exit every vimdiff view with :qa to get to ...
fbardos's user avatar
  • 540
2 votes
2 answers
540 views

I am aware of the git config option difftool.prompt true However, I am wondering if there is a way to stop diffing when return code is non-zero. I am using vim as diff-tool and if I exit using :cq it ...
I J's user avatar
  • 56
3 votes
0 answers
1k views

when resolving a git conflict using vimdiff is it possible to apply changes from both buffers ? i tried :diffget RE LO and hoped that it would apply the changes in that order, so <some content> ...
murison's user avatar
  • 4,055
11 votes
2 answers
3k views

When I run git difftool --tool-help or git mergetool --tool-help, I see: vimdiff vimdiff1 vimdiff2 vimdiff3 What are these different "versions"? I assume they all start Vim with different ...
shadowtalker's user avatar
  • 14.1k
0 votes
1 answer
77 views

Suppose I have some files in a folder. I browse the folder using vim vim myfolder. It lists the files, now I want to know how I can select two files and then open them in comparison mode (two tabs, ......
Ahmad's user avatar
  • 9,816
2 votes
1 answer
1k views

As the opening title suggests, I am trying to produce a side-by-side diff using git difftool. I am in an environment s.t. vimdiff is the only available tool on these computers and am using CLI ...
BurgeoningApe's user avatar
1 vote
2 answers
845 views

I've been having some problems with vimdiff, python and daemons. The thing is, I cannot use vimdiff with python when running the program as a daemon, I don't know what happens it just doesn't generate ...
diegofelipe01's user avatar
3 votes
1 answer
2k views

I am happy working with git difftool --dir-diff with beyond compare to show overall diff across directories and files and navigate through them. However when it comes to vimdiff, seems it do not ...
Eric Sun's user avatar
  • 973
0 votes
0 answers
298 views

For diff command, an exit status of 0 means no differences were found, 1 means some differences were found. What are the error exit values for diff? It works as expected with diff command. However, ...
AutoTester999's user avatar
1 vote
1 answer
240 views

My question is if there is a tool in linux to find the difference in two files with lines so big as 39604 chars. I tried with vimdiff, kompare, diff, colordiff, wdiff and other tools and none of them ...
oml's user avatar
  • 175
2 votes
2 answers
387 views

I use vimdiff as my merge tool in mercurial. Sometimes I'll start a rebase that ends up being pretty messy and I just want to try and get out of the process and do something different. The way I end ...
Ziewvater's user avatar
  • 1,423
11 votes
2 answers
11k views

I am new to this, so apologies about the basic question. I am using an Ubuntu environment. I have git installed. I setup vimdiff as the merge tool. I am testing the environment, but I am having a ...
Greeso's user avatar
  • 8,429
0 votes
1 answer
176 views

Somehow vim remembers that I did vimdiff on certain files and keeps opening them in the vimdiff mode. What that means is that when I open that same file again I get a grey bar displayed on the left (...
KeepLearning's user avatar
1 vote
1 answer
68 views

I am merging two git branches together. I am using vimdiff to do this, so there are three vim panes shown in my terminal. This same conflict arises hundreds of times in my merge: Every time I come ...
whatscool's user avatar
  • 317
13 votes
3 answers
4k views

I'm using CLI mergetool vimdiff and rather than going line by line and typing :diffg RE for every change to select the REMOTE version, is there a way I can just have the REMOTE version of the entire ...
jsstuball's user avatar
  • 5,091
0 votes
1 answer
75 views

I'm a simple user of vi. But now I'm looking for a bit more sophisticated solution. What I've in mind should look like a vimdiff view, but it's not about diffs. My first view has a file open with ...
Wolfgang R.'s user avatar
3 votes
1 answer
2k views

When comparing two files with same content but with line endings, vim diff does not detect the difference. Is there a way to make vimdiff show the difference.
smbatpetrosyan's user avatar
0 votes
1 answer
56 views

This looks strange but I don't understand what happened. I was checking the gitdiff using vimdiff (using vim-fugitive). Then, while being in the indexed buffer, I presed dp which should put the ...
Salahuddin's user avatar
  • 1,749

1
2 3 4 5