diff options
Diffstat (limited to 'plugin/keep_position.vim')
-rw-r--r-- | plugin/keep_position.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin/keep_position.vim b/plugin/keep_position.vim index 06a23ec..1389bcf 100644 --- a/plugin/keep_position.vim +++ b/plugin/keep_position.vim @@ -1,2 +1,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>) |