aboutsummaryrefslogtreecommitdiff
path: root/plugin/keep_position.vim
blob: 1389bcf3d4f1c0c54ef84f91b3dce4c7bafad9b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"
" keep_position.vim: User command wrapper to preserve cursor position and
" buffer view.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_keep_position') || &compatible || v:version < 700
  finish
endif
let loaded_keep_position = 1

" User command definition refers to autoloaded function
command! -nargs=+ -complete=command KeepPosition
      \ call keep_position#(<q-args>)