swift.vim (733B)
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 <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<" 19 20 setlocal comments=s1:/*,mb:*,ex:*/,:///,:// 21 setlocal expandtab 22 setlocal sw=4 sts=4 23 setlocal smartindent