aboutsummaryrefslogtreecommitdiff
path: root/plugin/keep_position.vim
blob: 01227c38c22139a0f086d9f669ef09a5a32a2564 (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 -range KeepPosition
      \ call keep_position#(<q-args>, <range>, <line1>, <line2>)