[Swift-user] Swiftscript vim syntax file

Allan Espinosa aespinosa at cs.uchicago.edu
Sat Mar 27 20:45:31 CDT 2010


Just a quick weekend hack.

Installation:

1. get swift.vim from http://www.ci.uchicago.edu/~aespinosa/swift/swift.vim
2. place swift.vim in your ~/.vim/syntax directory
3. add the following lines to your ~/.vim/filetype.vim :
" Swift script
au BufRead,BufNewFile *.swift setfiletype swift

Now opening a .swift file in your ViM text editor will now have pretty colors :)

Enjoy!
-Allan

-- 
Allan M. Espinosa <http://amespinosa.wordpress.com>
PhD student, Computer Science
University of Chicago <http://people.cs.uchicago.edu/~aespinosa>



More information about the Swift-user mailing list