diff options
author | typebrook <typebrook@gmail.com> | 2019-04-18 22:41:23 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-04-19 17:54:07 +0800 |
commit | 5a3c5e4142dd950a436a91e4aa74410c65411635 (patch) | |
tree | d38108900456e3c3a6624b8f3ee0fa115820ffe7 | |
parent | dcfe6321913131c54df4f6350458da06ab4be459 (diff) |
update
-rw-r--r-- | vimrc | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -71,6 +71,19 @@ while c <= 'z' | |||
71 | endw | 71 | endw |
72 | set timeout ttimeoutlen=50 | 72 | set timeout ttimeoutlen=50 |
73 | 73 | ||
74 | |||
75 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
76 | " => vim-racer | ||
77 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
78 | set hidden | ||
79 | let g:racer_cmd = "/home/jojo/.cargo/bin/racer" | ||
80 | let g:racer_experimental_completer = 1 | ||
81 | |||
82 | au FileType rust nmap gd <Plug>(rust-def) | ||
83 | au FileType rust nmap gs <Plug>(rust-def-split) | ||
84 | au FileType rust nmap gx <Plug>(rust-def-vertical) | ||
85 | au FileType rust nmap <leader>gd <Plug>(rust-doc) | ||
86 | |||
74 | 87 | ||
75 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | 88 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
76 | " => vim-plug | 89 | " => vim-plug |
@@ -86,6 +99,8 @@ Plug 'tpope/vim-surround' | |||
86 | Plug 'lifepillar/pgsql.vim' | 99 | Plug 'lifepillar/pgsql.vim' |
87 | Plug 'vimwiki/vimwiki' | 100 | Plug 'vimwiki/vimwiki' |
88 | Plug 'iberianpig/tig-explorer.vim' | 101 | Plug 'iberianpig/tig-explorer.vim' |
102 | Plug 'rust-lang/rust.vim' | ||
103 | Plug 'racer-rust/vim-racer' | ||
89 | 104 | ||
90 | " Initialize plugin system | 105 | " Initialize plugin system |
91 | call plug#end() | 106 | call plug#end() |