vimrc: Fugitive git bindings. Visual select + easymotion binding
This commit is contained in:
11
.vimrc
11
.vimrc
@@ -128,8 +128,9 @@ command! Csc cscope find c <cword>
|
|||||||
|
|
||||||
" Easymotion leader
|
" Easymotion leader
|
||||||
map <Leader><tab> <Plug>(easymotion-prefix)
|
map <Leader><tab> <Plug>(easymotion-prefix)
|
||||||
" Forwards and backwards jump
|
" Forwards and backwards jump and visual select
|
||||||
map <tab> <Plug>(easymotion-s)
|
map <tab> <Plug>(easymotion-s)
|
||||||
|
map <space> <C-V><Plug>(easymotion-s)
|
||||||
" Forwards and backwards word jump
|
" Forwards and backwards word jump
|
||||||
map <Leader>w <Plug>(easymotion-bd-w)
|
map <Leader>w <Plug>(easymotion-bd-w)
|
||||||
" Easymotion overwin line
|
" Easymotion overwin line
|
||||||
@@ -162,12 +163,19 @@ nmap <Leader>v :e $MYVIMRC <CR>
|
|||||||
|
|
||||||
" Match git conflict markers
|
" Match git conflict markers
|
||||||
nmap <Leader>/g /[<=>]\{7,}.*$<CR>
|
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
|
" Toggle wrapping of long lines
|
||||||
nmap <Leader>l :set wrap!<CR>
|
nmap <Leader>l :set wrap!<CR>
|
||||||
|
|
||||||
" Strip trailing whitespace
|
" Strip trailing whitespace
|
||||||
nmap <Leader><space> :TrailWhitespace <CR>
|
nmap <Leader><space> :TrailWhitespace <CR>
|
||||||
|
|
||||||
" Scroll window while keeping cursor on same line with shift
|
" Scroll window while keeping cursor on same line with shift
|
||||||
nmap <S-j> <c-e>
|
nmap <S-j> <c-e>
|
||||||
nmap <S-k> <c-y>
|
nmap <S-k> <c-y>
|
||||||
@@ -178,4 +186,3 @@ vmap <S-k> <c-y>
|
|||||||
map <Leader>n :noh<CR>
|
map <Leader>n :noh<CR>
|
||||||
vmap <Leader>T :'<,'> Tabularize /
|
vmap <Leader>T :'<,'> Tabularize /
|
||||||
nnoremap <leader>c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "")<CR>
|
nnoremap <leader>c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "")<CR>
|
||||||
noremap <space> :
|
|
||||||
|
|||||||
Reference in New Issue
Block a user