Bram Moolenaar | 1d9215b | 2020-01-25 13:27:42 +0100 | [diff] [blame] | 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 | " |
Bram Moolenaar | 82be484 | 2021-01-11 19:40:15 +0100 | [diff] [blame] | 9 | " 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 |
| 13 | if exists("b:did_ftplugin") |
| 14 | finish |
| 15 | endif |
| 16 | |
| 17 | let b:did_ftplugin = 1 |
| 18 | let b:undo_ftplugin = "setlocal comments< expandtab< tabstop< shiftwidth< smartindent<" |
Bram Moolenaar | 1d9215b | 2020-01-25 13:27:42 +0100 | [diff] [blame] | 19 | |
| 20 | setlocal comments=s1:/*,mb:*,ex:*/,:///,:// |
| 21 | setlocal expandtab |
Bram Moolenaar | ff78155 | 2020-03-19 20:37:11 +0100 | [diff] [blame] | 22 | setlocal sw=4 sts=4 |
Bram Moolenaar | 1d9215b | 2020-01-25 13:27:42 +0100 | [diff] [blame] | 23 | setlocal smartindent |