aboutsummaryrefslogtreecommitdiff
path: root/plugin/keep_position.vim
blob: 6f6c3982dc7cda1143b34e0afbf6633e88e7ee7f (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! -bar -complete=command -nargs=+ KeepPosition
      \ call keep_position#(<q-args>)