Last active
March 4, 2021 13:12
-
-
Save jlehikoinen/0d78af6246c1183d96ad to your computer and use it in GitHub Desktop.
Swift syntax highlighting for Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Swift syntax highlighting for Vim | |
# Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/ | |
echo "--- Installing and configuring Pathogen.." | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
echo "execute pathogen#infect() | |
syntax on | |
filetype plugin indent on" >> ~/.vimrc | |
echo "--- Cloning Apple's Swift repo.." | |
git clone https://github.com/apple/swift/ | |
echo "--- Copying plugin to Vim bundles.." | |
cp -r ./swift/utils/vim ~/.vim/bundle/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have vim 8 or later (default on macOS) you can do this entirely without the package manager... I have a gist here: https://gist.github.com/mgrider/dd22c1eb82af227d736a0cb25007427b