xref: /vim-8.2.3635/runtime/ftplugin/swift.vim (revision 82be4849)
1" This source file is part of the Swift.org open source project
2"
3" Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
4" Licensed under Apache License v2.0 with Runtime Library Exception
5"
6" See https://swift.org/LICENSE.txt for license information
7" See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8"
9" Vim maintainer: 	Emir SARI <[email protected]>
10" Last Change:		2021 Jan 08
11
12" Only do this when not done yet for this buffer
13if exists("b:did_ftplugin")
14    finish
15endif
16
17let b:did_ftplugin = 1
18let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<"
19
20setlocal comments=s1:/*,mb:*,ex:*/,:///,://
21setlocal expandtab
22setlocal sw=4 sts=4
23setlocal smartindent
24