5 years ago
: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