diff --git a/vimrc b/vimrc index 3f5271076f..b0349a39c7 100644 --- a/vimrc +++ b/vimrc @@ -177,7 +177,9 @@ set spellfile=$HOME/.vim-spell-en.utf-8.add set complete+=kspell " Always use vertical diffs -set diffopt+=vertical +if &diff + set diffopt+=vertical +endif " Local config if filereadable($HOME . "/.vimrc.local")