I installed Rust and the Rust vim plugin, but autocomplete does not work.
rustc 1.10.0-dev (992bb1332 2016-05-12)
..vimrc
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'mattn/vim-particle'
Plugin 'davidhalter/jedi-vim'
Plugin 'rust-lang/rust.vim'
call vundle#end() " required
filetype plugin indent on " required
Why is autocomplete not working?
The Rust vim plugin doesn't support autocomplete. YouCompleteMe has autocomplete for Rust (powered by racer).
YouCompleteMe is a bit complicated to install and heavy, but is probably great if you have many languages you want to autocomplete. In my case, VimRacer really does the job!
Here's how to install it:
rustup component add rust-src
to get the Rust source code.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With