nvim: keymappings: Drop enhanced ijump helper
This actually crashes in some situations. Drop this.
This commit is contained in:
parent
46ad457661
commit
3e49faa46d
1 changed files with 0 additions and 14 deletions
|
@ -119,17 +119,3 @@ vnoremap N Nzz
|
||||||
vnoremap . :norm.<CR>
|
vnoremap . :norm.<CR>
|
||||||
" Go to the last file we changed
|
" Go to the last file we changed
|
||||||
nnoremap <BS> <C-^>
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue