From f3e92c7721505a59738db15e3e80bc5ccff08e36 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 14 Aug 2021 10:21:27 -0400 Subject: [PATCH] Deprecate CTRL-N and CTRL-P --- autoload/fugitive.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8a2d9ad..04e1695 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6886,12 +6886,8 @@ function! fugitive#MapJumps(...) abort call s:Map('n', 'p', ':exe GF("pedit")', '') if !exists('g:fugitive_no_maps') - if exists(':CtrlP') && get(g:, 'ctrl_p_map') =~? '^$' - nnoremap :execute line('.') == 1 ? 'CtrlP ' . s:fnameescape(Tree()) : PreviousItem(v:count1) - else - nnoremap :execute PreviousItem(v:count1) - endif - nnoremap :execute NextItem(v:count1) + call s:Map('n', '', ':exe PreviousItem(v:count1)echohl WarningMsgecho "CTRL-P is deprecated in favor of ("echohl NONE', '') + call s:Map('n', '', ':exe NextItem(v:count1)echohl WarningMsgecho "CTRL-N is deprecated in favor of )"echohl NONE', '') endif call s:MapMotion('(', 'exe PreviousItem(v:count1)') call s:MapMotion(')', 'exe NextItem(v:count1)')