Set up Swift development on Linux - lmmx/devnotes GitHub Wiki
To get Swift syntax highlighting on Linux, clone the
Swift repo (e.g. into ~/opt
) and then copy over the
vim utils to your Pathogen bundle directory et voila
- I suggest renaming the "vim" directory to "swift" when you do so
cd ~/opt
git clone [email protected]:apple/swift.git
cp -r swift/utils/vim ~/.vim/bundle
cd ~/.vim/bundle
mv vim swift
Now when you open a Swift file it'll be syntax highlighted
For a Vundle alternative see this guide