nvim: keymappings: Drop enhanced ijump helper

This actually crashes in some situations. Drop this.
This commit is contained in:
Sanchayan Maity 2020-10-08 14:46:22 +05:30
parent 46ad457661
commit 3e49faa46d

View file

@ -119,17 +119,3 @@ vnoremap N Nzz
vnoremap . :norm.<CR>
" Go to the last file we changed
nnoremap <BS> <C-^>
nnoremap [i [I:call <SID>PromptAndExec(":ijump! %d \022\027\015")<CR>
nnoremap ]i ]I:call <SID>PromptAndExec(":+1,$ijump! %d \022\027\015")<CR>
function! s:PromptAndExec(cmd) abort
let ans = input('Type number and <Enter> (empty cancels): ')
if ans !~# '^\s*$'
try
silent execute 'normal! ' . printf(a:cmd, ans)
catch /E387/ "E387: Match is on current line
endtry
endif
endfunction