This is a very basic Vim syntax file for Swift.
-
Copy
swift.vim
from theftdetect
directory to anftdetect
directory 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.vim
from thesyntax
directory to asyntax
directory 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!