blob: a86b782c22736b0457f64c051726fbb836626e75 [file] [log] [blame]
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01001" 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"
Bram Moolenaar82be4842021-01-11 19:40:15 +01009" Vim maintainer: Emir SARI <bitigchi@me.com>
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<"
Bram Moolenaar1d9215b2020-01-25 13:27:42 +010019
20setlocal comments=s1:/*,mb:*,ex:*/,:///,://
21setlocal expandtab
Bram Moolenaarff781552020-03-19 20:37:11 +010022setlocal sw=4 sts=4
Bram Moolenaar1d9215b2020-01-25 13:27:42 +010023setlocal smartindent