Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Swift syntax highlighting for Vim
# 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/
@mgrider

This comment has been minimized.

Copy link

commented Aug 28, 2019

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

@jlehikoinen

This comment has been minimized.

Copy link
Owner Author

commented Aug 29, 2019

Ok, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.