Skip to content

Vim configuration for Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jFransham/rust.vim

 
 

Repository files navigation

rust.vim

Description

This is a vim plugin that provides Rust file detection, syntax highlighting, and (optional) autoformatting.

This fork adds cargo support (runs cargo rustc -Zno-trans, which just checks the code and does not compile) and cargo-clippy support (requires cargo-clippy to be installed and on your $PATH).

Installation

Using Vundle

  1. Add Plugin 'jFransham/rust.vim' to ~/.vimrc
  2. 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/jFransham/rust.vim.git ~/.vim/bundle/rust.vim

Using NeoBundle

  1. Add NeoBundle 'jFransham/rust.vim' to ~/.vimrc
  2. Re-open vim or execute :source ~/.vimrc

Enabling autoformat

This plugin can optionally format your code using [rustfmt][rfmt] every time a buffer is written. Simple put let g:rustfmt_autosave = 1 in your .vimrc.

Help

Further help can be found in the documentation with :Helptags then :help rust.

License

Like Rust, rust.vim is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.

About

Vim configuration for Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%