Skip to content

Instantly share code, notes, and snippets.

@fbukevin
Forked from jlehikoinen/setup.sh
Created January 22, 2019 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbukevin/0c974afd23c5e48571cc69b03f017fd4 to your computer and use it in GitHub Desktop.
Save fbukevin/0c974afd23c5e48571cc69b03f017fd4 to your computer and use it in GitHub Desktop.
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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment