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 f3e92c7721505a59738db15e3e80bc5ccff08e36 (tree)
parent bec8e7b7c77ec09917a9dd5396775a06fdf11b34
Author: Tim Pope <code@tpope.net>
Date:   Sat, 14 Aug 2021 10:21:27 -0400

Deprecate CTRL-N and CTRL-P

Diffstat:
Mautoload/fugitive.vim | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -6886,12 +6886,8 @@ function! fugitive#MapJumps(...) abort call s:Map('n', 'p', ':<C-U>exe <SID>GF("pedit")<CR>', '<silent>') if !exists('g:fugitive_no_maps') - if exists(':CtrlP') && get(g:, 'ctrl_p_map') =~? '^<c-p>$' - nnoremap <buffer> <silent> <C-P> :<C-U>execute line('.') == 1 ? 'CtrlP ' . s:fnameescape(<SID>Tree()) : <SID>PreviousItem(v:count1)<CR> - else - nnoremap <buffer> <silent> <C-P> :<C-U>execute <SID>PreviousItem(v:count1)<CR> - endif - nnoremap <buffer> <silent> <C-N> :<C-U>execute <SID>NextItem(v:count1)<CR> + call s:Map('n', '<C-P>', ':exe <SID>PreviousItem(v:count1)<Bar>echohl WarningMsg<Bar>echo "CTRL-P is deprecated in favor of ("<Bar>echohl NONE<CR>', '<unique>') + call s:Map('n', '<C-N>', ':exe <SID>NextItem(v:count1)<Bar>echohl WarningMsg<Bar>echo "CTRL-N is deprecated in favor of )"<Bar>echohl NONE<CR>', '<unique>') endif call s:MapMotion('(', 'exe <SID>PreviousItem(v:count1)') call s:MapMotion(')', 'exe <SID>NextItem(v:count1)')