Skip to content

Commit 4bc7a63

Browse files
authored
Merge pull request swiftlang#35219 from ackyshake/main
Conform to existing conventions for Vim ftplugin
2 parents 52d9398 + 6c38a6b commit 4bc7a63

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

utils/vim/ftplugin/swift.vim

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
" See https://swift.org/LICENSE.txt for license information
77
" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88

9+
" Only do this when not done yet for this buffer
10+
if exists("b:did_ftplugin")
11+
finish
12+
endif
13+
14+
let b:did_ftplugin = 1
15+
let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<"
16+
917
setlocal comments=s1:/*,mb:*,ex:*/,:///,://
1018
setlocal expandtab
11-
setlocal ts=2
12-
setlocal sw=2
19+
setlocal tabstop=2
20+
setlocal shiftwidth=2
1321
setlocal smartindent

0 commit comments

Comments
 (0)