Skip to content

Commit

Permalink
More git bindings. :only shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
daveray committed Aug 28, 2011
1 parent 78a1ce0 commit 07f6a59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ map <silent> <A-j> <C-W>-
map <silent> <A-k> <C-W>+
map <silent> <A-l> <C-w>>
" Close everything but the current window
nmap <silent> <Leader>o :only<cr>
" In insert mode, C-o and C-b open lines below and above
imap <C-o> <end><cr>
imap <C-b> <home><cr><Up>
Expand Down Expand Up @@ -343,7 +346,8 @@ nmap <silent> <Leader>sh :execute Screenshell_prefix() . "; ghci" <cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" git bindings
nmap <silent> <leader>gs :Gstatus<cr>
nmap <silent> <leader>gc :Gcommit -a<cr>
nmap <silent> <leader>ge :Gedit<cr>
nmap <silent> <leader>gd :Gdiff<cr>
nmap <silent> <leader>gp :Git push<cr>

Expand Down

0 comments on commit 07f6a59

Please sign in to comment.