commit 2c92b13ef22fe8dd35f2a4362b7aee4a4d6bc646 (tree)
parent ebb684c2452e2d251f00f9289f52730d6bb5bb89
Author: Motiejus Jakštys <motiejus@uber.com>
Date: Fri, 28 Aug 2020 10:09:15 +0300
conditional diffopt
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
@@ -15,7 +15,10 @@ set autoindent smarttab nrformats-=octal
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
set laststatus=2 wildmenu scrolloff=1 sidescrolloff=5 display+=lastline encoding=utf-8
set formatoptions+=j history=1000 tabpagemax=50 sessionoptions-=options
-set diffopt+=algorithm:patience
+
+if has("patch-8.1-0360")
+ set diffopt+=algorithm:patience
+endif
" html
au FileType html setlocal ts=2 sw=2 sws=2