blob: 68adb5427ff7ac2b833d003c55a28a38b2db426d (
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 -nargs=+ -complete=command -range KeepPosition
\ call keep_position#(<q-args>, <range>, <line1>, <line2>)
|