Skip to content

Set up Swift development on Linux

Louis Maddox edited this page Jun 18, 2021 · 1 revision

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 git@github.com: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

Clone this wiki locally