This is a vim plugin that provides Rust file detection and syntax highlighting.
Using Vundle
- Add
Plugin 'rust-lang/rust.vim'
to~/.vimrc
vim +PluginInstall +qall
Note: Vundle will not automatically detect Rust files properly if filetype on
is executed before Vundle. Please check the quickstart for more
details.
Using Pathogen
git clone --depth=1 https://github.com/rust-lang/rust.vim.git ~/.vim/bundle/rust.vim
Using NeoBundle
- Add
NeoBundle 'rust-lang/rust.vim'
to~/.vimrc
- Re-open vim or execute
:source ~/.vimrc