1
0
Fork 0
mirror of synced 2024-12-21 22:41:06 -05:00
ultimate-vim/sources_non_forked/vim-racer
2016-02-05 00:52:39 -07:00
..
plugin Add plugins for Rust support. 2016-02-05 00:52:39 -07:00
rplugin/python3/deoplete/sources Add plugins for Rust support. 2016-02-05 00:52:39 -07:00
.gitignore Add plugins for Rust support. 2016-02-05 00:52:39 -07:00
README.md Add plugins for Rust support. 2016-02-05 00:52:39 -07:00

Vim Racer Plugin

This plugin allows vim to use Racer for Rust code completion and navigation.

Installation

  1. Build / Install Racer

  2. Install using Pathogen, Vundle or NeoBundle. Or, copy plugin/racer.vim into your ~/.vim/plugin directory.

Vundle users:

Plugin 'racer-rust/vim-racer'

NeoBundle users:

NeoBundle 'racer-rust/vim-racer'

vim-plug users:

Plug 'racer-rust/vim-racer'
  1. Add g:racer_cmd and $RUST_SRC_PATH variables to your .vimrc. Also it's worth turning on 'hidden' mode for buffers otherwise you need to save the current buffer every time you do a goto-definition. E.g.:

    set hidden
    let g:racer_cmd = "<path-to-racer>/target/release/racer"
    let $RUST_SRC_PATH="<path-to-rust-srcdir>/src/"
    
  2. In insert mode use C-x-C-o to search for completions

  3. In normal mode type gd to go to a definition