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, ...)
Asked
Active
Viewed 56 times
1 Answers
0
When you opened the folder using vim, vim thefolder
- navigate to each file using arrow keys and press
mf
, it marks the files, - then press
md
, it calls vimdiff on the selected files (up to 3 files).

Ahmad
- 8,811
- 11
- 76
- 141