Always map q in status

This commit is contained in:
Tim Pope 2011-08-19 14:08:48 -04:00
parent b3262c28d6
commit 0d3419ecc4

View File

@ -1705,6 +1705,7 @@ function! s:BufReadIndex()
set ft=gitcommit set ft=gitcommit
endif endif
setlocal ro noma nomod nomodeline bufhidden=delete setlocal ro noma nomod nomodeline bufhidden=delete
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += 1<Bar>exe <SID>BufReadIndex()<CR> nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += 1<Bar>exe <SID>BufReadIndex()<CR>
nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= 1<Bar>exe <SID>BufReadIndex()<CR> nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= 1<Bar>exe <SID>BufReadIndex()<CR>
nnoremap <buffer> <silent> D :<C-U>execute <SID>StageDiff()<CR> nnoremap <buffer> <silent> D :<C-U>execute <SID>StageDiff()<CR>