Default to using vertical orientation when using ':diffsplit'

4 Points

Steven Fernandez Steven Fernandez

9 years ago

The :diffsplit command is useful to compare differences between 2 files. It is the default mode in which vim opens up when one uses the vimdiff command. However, the :diffsplit ex command will default to a horizontal orientation. Using this setting in your vimrc will change this default behavior.

" prefer vertical orientation when using :diffsplit
set diffopt+=vertical