Silence fo+=j error for users of Vim < 7.3.541.

This commit is contained in:
Chris Morgan 2013-09-04 13:33:40 +10:00
parent 2bc408f3e3
commit 9f6180413d

View file

@ -21,7 +21,9 @@ else
setlocal comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
endif
setlocal commentstring=//%s
setlocal formatoptions-=t formatoptions+=croqnlj
setlocal formatoptions-=t formatoptions+=croqnl
" j was only added in 7.3.541, so stop complaints about its nonexistence
silent! setlocal formatoptions+=j
" This includeexpr isn't perfect, but it's a good start
setlocal includeexpr=substitute(v:fname,'::','/','g')