diff options
Diffstat (limited to 'vim')
| -rwxr-xr-x | vim/.vim/vimrc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 8785a22..3e4076f 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc | |||
| @@ -14,7 +14,7 @@ Plug 'unblevable/quick-scope' | |||
| 14 | Plug 'vim-airline/vim-airline-themes' | 14 | Plug 'vim-airline/vim-airline-themes' |
| 15 | 15 | ||
| 16 | if executable('ansible') | 16 | if executable('ansible') |
| 17 | Plug 'chase/vim-ansible-yaml' | 17 | Plug 'chase/vim-ansible-yaml' |
| 18 | endif | 18 | endif |
| 19 | 19 | ||
| 20 | if has('python') || has('python3') | 20 | if has('python') || has('python3') |
| @@ -28,6 +28,10 @@ if has('python') || has('python3') | |||
| 28 | let g:ycm_install_command .= ' --gocode-completer' | 28 | let g:ycm_install_command .= ' --gocode-completer' |
| 29 | endif | 29 | endif |
| 30 | 30 | ||
| 31 | if executable('rustc') | ||
| 32 | let g:ycm_install_command .= ' --rust-completer' | ||
| 33 | endif | ||
| 34 | |||
| 31 | Plug 'Valloric/YouCompleteMe', {'do': g:ycm_install_command} | 35 | Plug 'Valloric/YouCompleteMe', {'do': g:ycm_install_command} |
| 32 | endif | 36 | endif |
| 33 | 37 | ||
| @@ -77,7 +81,7 @@ set ignorecase | |||
| 77 | set smartcase " capital letters = case sensitive | 81 | set smartcase " capital letters = case sensitive |
| 78 | 82 | ||
| 79 | " Disable ex mode | 83 | " Disable ex mode |
| 80 | " nnoremap Q <Nop> | 84 | nnoremap Q <Nop> |
| 81 | 85 | ||
| 82 | " Save as sudo | 86 | " Save as sudo |
| 83 | cnoremap w!! w !sudo tee > /dev/null % | 87 | cnoremap w!! w !sudo tee > /dev/null % |
