New answers tagged

2

This code implements what you suggest, saving the initial position into the jump list when using a series of Ctrl+D or Ctrl+U motions. function! SaveJump(motion) if exists('#SaveJump#CursorMoved') autocmd! SaveJump else normal! m' endif let m = a:motion if v:count let m = v:count.m endif execute 'normal!' m endfunction function! ...


Top 50 recent answers are included