This is a very basic Vim syntax file for Swift.
-
Copy
swift.vimfrom theftdetectdirectory to anftdetectdirectory under your Vim home directory. (If you’re on a Mac or Linux machine, that home directory would probably be~/.vim/, so look for~/.vim/ftdtect.) -
Similarly, copy
swift.vimfrom thesyntaxdirectory to asyntaxdirectory under your Vim home directory. (Again: If you’re on a Mac or Linux machine, the folder would probably be~/.vim/syntax/.) -
You’re done!