How do I use the Vim diff mode without folding?

You can use the following command-line to start Vim with two filenames and use the diff mode without folding:

    $ vim -o file1 file2 "+windo set diff scrollbind scrollopt+=hor nowrap"

If you like vertically split windows, then replace “-o” with “-O”.

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind