1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-27 01:45:12 +01:00

Update vimrc and vim plugins

This commit is contained in:
Valentin Brandl 2017-03-30 17:00:48 +02:00
parent a30223bc7f
commit f0f949f8d1
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
2 changed files with 11 additions and 5 deletions

View File

@ -22,7 +22,7 @@ Plugin 'Rykka/InstantRst' " instant preview
Plugin 'cespare/vim-toml' " toml highlighting Plugin 'cespare/vim-toml' " toml highlighting
Plugin 'w0rp/ale' " syntax checking " Plugin 'w0rp/ale' " syntax checking
Plugin 'ervandew/supertab' Plugin 'ervandew/supertab'
Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-surround' Plugin 'tpope/vim-surround'

View File

@ -176,10 +176,10 @@ nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y> nnoremap <C-y> 3<C-y>
" moving up and down work as you would expect " moving up and down work as you would expect
nnoremap <silent> j gj nnoremap j gj
nnoremap <silent> k gk nnoremap k gk
nnoremap <silent> ^ g^ nnoremap ^ g^
nnoremap <silent> $ g$ nnoremap $ g$
" cool resizing " cool resizing
nnoremap <Left> :vertical resize +2<CR> nnoremap <Left> :vertical resize +2<CR>
@ -258,6 +258,10 @@ inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
" ctrlp " ctrlp
set runtimepath^=~/.vim/bundle/ctrlp.vim set runtimepath^=~/.vim/bundle/ctrlp.vim
let g:ctrlp_match_window = 'bottom,order::ttb' " order top to bottom
let g:ctrlp_switch_buffer = 0 " open files in new buffer
let g:ctrlp_working_path_mode = 0 " honor working path changes in vim session
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' " use ag to search for files (faster)
" make true colors in tmux work " make true colors in tmux work
" set t_8f=[38;2;%lu;%lu;%lum " set t_8f=[38;2;%lu;%lu;%lum
@ -333,6 +337,8 @@ au FileType rust nmap gs <Plug>(rust-def-split)
au FileType rust nmap gx <Plug>(rust-def-vertical) au FileType rust nmap gx <Plug>(rust-def-vertical)
au FileType rust nmap <leader>gd <Plug>(rust-doc) au FileType rust nmap <leader>gd <Plug>(rust-doc)
let g:rustfmt_autosave = 1 " run rustfmt when saving a file
" close Goyo *and* vim with :q " close Goyo *and* vim with :q
function! s:goyo_enter() function! s:goyo_enter()
let b:quitting = 0 let b:quitting = 0