0

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, ...)

1 Answer 1

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).
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.