motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 4dd41688cface81188fd67922533aa7aeddff191 (tree)
parent 18d6d1ab82d9ac15586d7d3c1a36f9ef6fb50eae
Author: Tim Pope <code@tpope.net>
Date:   Fri,  1 Jan 2016 16:55:17 -0500

Entertain P as a p alternative in :Gstatus

This could potentially free up `p` as "open in new tab", which would
correspond nicely with `vim -p`.

Diffstat:
Mplugin/fugitive.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -2547,6 +2547,8 @@ function! s:BufReadIndex() abort nnoremap <buffer> <silent> dv :<C-U>execute <SID>StageDiff('Gvdiff')<CR> nnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR> xnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR> + nnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR> + xnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR> nnoremap <buffer> <silent> q :<C-U>if bufnr('$') == 1<Bar>quit<Bar>else<Bar>bdelete<Bar>endif<CR> nnoremap <buffer> <silent> r :<C-U>edit<CR> nnoremap <buffer> <silent> R :<C-U>edit<CR>