aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/vimrc.vim
blob: 0dff8ffdd06c4b28fa0401ac8a7d27f90ed35872 (plain)
1
2
3
4
5
6
" Run some normal-mode keystrokes without jumping around
function! vimrc#Anchor(keys) abort
  let l:view = winsaveview()
  execute 'normal! '.a:keys
  call winrestview(l:view)
endfunction