Skip to main content

Questions tagged [vimdiff]

The diff feature of vim lets show differences between two, three or four versions of the same file

1 vote
3 answers
164 views

I am but a simple man… I work on a black-background, light-gray foreground terminal, and I am a long-time, but in no way an expert, user of Vim. Disliking the default color scheme, many years ago I ...
einpoklum's user avatar
  • 121
0 votes
3 answers
86 views

Would there be a command to count the dark blue lines (not simply adding line number on the rows) on the vimdiff Bookmarks1 Bookmarks2 please? Once I figured out how many extra lines there are, I can ...
user1416486's user avatar
1 vote
3 answers
149 views

I often use diffthis to compare timestamped logs e.g. from dmesg. I would like to skip those timestamps when computing the diff so the two lines below are considered the same: [ 0.003621] Early ...
Get rid of LLM slop's user avatar
1 vote
1 answer
120 views

I have a function that changes settings for diff mode (usually activated by using vimdiff). Manually calling this function works as expected. However, I would like this function to be called ...
MERM's user avatar
  • 113
1 vote
1 answer
222 views

:help jumpto-diffs gives commands to jump between changes in a vimdiff: Two commands can be used to jump to diffs: *[c* [c Jump backwards to the previous start ...
idbrii's user avatar
  • 852
4 votes
1 answer
399 views

I am using Neovim v0.10.0 and have the following config for git difftool: [diff] tool = nvimdiff [difftool] prompt = False trustExitCode = true [difftool "nvimdiff"] cmd = ...
Lân's user avatar
  • 41
0 votes
1 answer
689 views

In plain old (n)vimdiff, one can jump to the next/previous difference using [c or ]c respectively. (says :help diff documentation, at least) Not so much in my AstroNvim; running nvim -d -R old.txt new....
Marcus Müller's user avatar
4 votes
4 answers
1k views

Let's say I have two files with the following contents: this is some important text another different line if another is needed here it is and this is some important text we now first add two new ...
Svalorzen's user avatar
  • 165
1 vote
1 answer
210 views

My python code opens a subprocess which in turn calls vimdiff and :toHTML. Snippet added below: subprocess.check_call( [ "vimdiff", ...
Gunjan Kokiloo's user avatar
1 vote
1 answer
761 views

My colors currently look like this, with the text highlighted green on both sides: I would like it to be red on the left, and green on the right. I tried to change the DiffDelete highlight, but that ...
vinnydiehl's user avatar
1 vote
1 answer
118 views

Vim help suggests a nice command to show a side-by-side diff of the current buffer since the last save: command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ \ | diffthis | wincmd p | ...
Canis Lupus's user avatar
3 votes
1 answer
669 views

How to create a diff of the current text and the clipboard? It could result in a vertical split showing the clipboard content, and a normal diff between them. Opening a vertical split, pasting and ...
Volker Siegel's user avatar
1 vote
2 answers
239 views

If I have a block of contiguous flagged lines in vimdiff, then it treats them as if they were a single diff, and pressing 'dp' sets the other buffer the same for the entire block. Is it possible to ...
workisa4letterword's user avatar
0 votes
1 answer
110 views

How can I detect when a diff begins and ends? By "diff" I mean when at least 2 buffers are in diff mode (i.e. they are scroll-bound and diff syntax highlighting is visible). I'm not asking ...
Steve Ward's user avatar
1 vote
0 answers
105 views

I want line numbers to be highlighted for diff files depending on added lines and removed lines. For added lines, the line number should be green. For removed lines, the line number should be red. I ...
Amarakon's user avatar
  • 281

15 30 50 per page
1
2 3 4 5
9