Skip to content

Commit

Permalink
vimrc: fugitive shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
mslehto committed Oct 14, 2018
1 parent e24cb91 commit c6f0764
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ nnoremap <F4> :make!<cr>
nnoremap <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>
set makeprg=gmake

let mapleader = ','
nmap <silent> <leader>gs :Gstatus<cr>
nmap <silent> <leader>gd :Gvdiff<cr>
nmap <leader>ge :Gedit<cr>
nmap <silent><leader>gr :Gread<cr>
nmap <silent><leader>gb :Gblame<cr>
map <silent> <C-h> :call functions#WinMove('h')<cr>
map <silent> <C-j> :call functions#WinMove('j')<cr>
map <silent> <C-k> :call functions#WinMove('k')<cr>
Expand Down

0 comments on commit c6f0764

Please sign in to comment.