Skip to content

Commit 9f61804

Browse files
committed
Silence fo+=j error for users of Vim < 7.3.541.
1 parent 2bc408f commit 9f61804

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/etc/vim/ftplugin/rust.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ else
2121
setlocal comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
2222
endif
2323
setlocal commentstring=//%s
24-
setlocal formatoptions-=t formatoptions+=croqnlj
24+
setlocal formatoptions-=t formatoptions+=croqnl
25+
" j was only added in 7.3.541, so stop complaints about its nonexistence
26+
silent! setlocal formatoptions+=j
2527

2628
" This includeexpr isn't perfect, but it's a good start
2729
setlocal includeexpr=substitute(v:fname,'::','/','g')

0 commit comments

Comments
 (0)