diff --git a/racer.vim b/racer.vim new file mode 100644 index 0000000..88e24e8 --- /dev/null +++ b/racer.vim @@ -0,0 +1,9 @@ +set hidden +let g:racer_cmd = "/home/cmdln/.cargo/bin/racer" + +au FileType rust nmap gd (rust-def) +au FileType rust nmap gs (rust-def-split) +au FileType rust nmap gx (rust-def-vertical) +au FileType rust nmap gd (rust-doc) + + diff --git a/vimrc b/vimrc index 0de75fd..b33a8ab 100644 --- a/vimrc +++ b/vimrc @@ -14,6 +14,7 @@ source syntastic.vim source unite.vim source mapping.vim source jsonnet.vim +source racer.vim exec "cd " . oldwd " turn on file type plugins diff --git a/vundle.vim b/vundle.vim index 6321bed..08a11f2 100644 --- a/vundle.vim +++ b/vundle.vim @@ -53,6 +53,8 @@ Plugin 'timonv/vim-cargo' Plugin 'drmikehenry/vim-fontsize' " support for jsonnet Plugin 'google/vim-jsonnet' +" support for racer +Plugin 'racer-rust/vim-racer' " All of your Plugins must be added before the following line call vundle#end() " required