vimrc: Fugitive git bindings. Visual select + easymotion binding

This commit is contained in:
2019-11-12 13:59:37 +01:00
parent 86764734fd
commit 84381b084a

11
.vimrc
View File

@@ -128,8 +128,9 @@ command! Csc cscope find c <cword>
" Easymotion leader
map <Leader><tab> <Plug>(easymotion-prefix)
" Forwards and backwards jump
" Forwards and backwards jump and visual select
map <tab> <Plug>(easymotion-s)
map <space> <C-V><Plug>(easymotion-s)
" Forwards and backwards word jump
map <Leader>w <Plug>(easymotion-bd-w)
" Easymotion overwin line
@@ -162,12 +163,19 @@ nmap <Leader>v :e $MYVIMRC <CR>
" Match git conflict markers
nmap <Leader>/g /[<=>]\{7,}.*$<CR>
" Git-Gutter status, commit, grep, blame
nmap <Leader>gs :Gstatus<CR>
nmap <Leader>gc :Gcommit<CR>
nmap <Leader>gS :Gstatus<CR> :Gcommit<CR>
nmap <Leader>gg :Ggrep<space>
nmap <Leader>gb :Gblame<CR>
" Toggle wrapping of long lines
nmap <Leader>l :set wrap!<CR>
" Strip trailing whitespace
nmap <Leader><space> :TrailWhitespace <CR>
" Scroll window while keeping cursor on same line with shift
nmap <S-j> <c-e>
nmap <S-k> <c-y>
@@ -178,4 +186,3 @@ vmap <S-k> <c-y>
map <Leader>n :noh<CR>
vmap <Leader>T :'<,'> Tabularize /
nnoremap <leader>c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "")<CR>
noremap <space> :