Suppose I have some files in a folder. I browse the folder using vim
vim myfolder. It opens
netrw with a list of the files in the directory. Now I want to select two or more files and then open them in comparison mode. How can I do that?
When you opened the folder using vim,
- 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).
There are other commands in this mode, use
:h netrw to find more
:help vimdiff? The answer is right at the beginning...
vimdiff file1 file2, but I'm speaking about exploring the files and then opening them side by side. My main problem is that the filenames are long and I someway need to select them in browser window.
:h netrw. If it's another plugin then read its documentation and so on. Next, you were adviced to read
:h vimdiffbut it looks you never got after first few lines. At least, do the first section until the end before complaining that someone haven't answered your question.