Files
vim-ale/vim-rust
AJ ONeal efda7c60aa add gittag conf for vim plugins, alias confs, fix psql as own package
Vim plugins with gittag source:
- vim-airline, vim-airline-themes, vim-ale, vim-devicons, vim-go
- vim-nerdtree, vim-prettier, vim-rust, vim-sensible, vim-shfmt
- vim-syntastic

rust.vim is a directory symlink to vim-rust, so it shares the same
releases.conf automatically.

Alias confs (alias_of):
- postgresql → postgres
- postgresql-client, postgres-client → psql
- mariadb-server, mariadbd → mariadb
- gnupg → gpg, iterm → iterm2, ziglang → zig
- trippy → trip, powershell → pwsh

Fix: psql is its own package (postgres client), not an alias of
postgres (server). Both use the same GitHub repo
(bnnanet/postgresql-releases) but install different binaries.
2026-03-09 23:24:35 -06:00
..
2023-10-18 02:10:55 -06:00
2021-08-15 05:08:30 +00:00

title, homepage, tagline
title homepage tagline
vim-rust https://github.com/rust-lang/rust.vim vim-rust (rust.vim) adds Rust language support for Vim.

To update (replacing the current version) run webi vim-rust.

Files

These are the files / directories that are created and/or modified with this install:

~/.vim/pack/plugins/start/rust.vim/
~/.vim/plugins/rust.vim

Cheat Sheet

vim-rust provides integration with cargo check, rustfmt, and other rust tooling.

You'll also need to install ALE (part of vim-essentials) or syntastic first.

How to install and configure by hand

  1. Remove the previous version of rust.vim, if any:

    rm -rf ~/.vim/pack/plugins/start/rust.vim
    
  2. Install rust.vim as a Vim8 package with git:

    mkdir -p ~/.vim/pack/plugins/start/
    git clone --depth=1 \
        https://github.com/rust-lang/rust.vim \
        ~/.vim/pack/plugins/start/rust.vim
    
  3. Create ~/.vim/plugins/rust.vim, as follows:

    " Reasonable defaults for rust.vim
    
    " run rustfmt on save
    let g:rustfmt_autosave = 1
    
    " run cargo check et al
    let g:ale_rust_cargo_use_check = 1
    let g:ale_rust_cargo_check_tests = 1
    let g:ale_rust_cargo_check_examples = 1
    
  4. Edit ~/.vimrc to include the config:

    " Rust: reasonable defaults for rust.vim
    source ~/.vim/plugins/rust.vim