diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 16:50:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 16:51:55 +1200 |
commit | 831ecd219d88cd4a005e1a9657601803d9b701b9 (patch) | |
tree | c20769dfdecfbe51e8a1cb36bc9fccfc814fa099 /doc/keep_position.txt | |
parent | Merge branch 'release/v0.3.0' into develop (diff) | |
download | vim-keep-position-831ecd219d88cd4a005e1a9657601803d9b701b9.tar.gz vim-keep-position-831ecd219d88cd4a005e1a9657601803d9b701b9.zip |
Remove range support
I didn't realise how new the <range> expansion was; it's only in Vim
8.1, by the looks.
Diffstat (limited to 'doc/keep_position.txt')
-rw-r--r-- | doc/keep_position.txt | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/doc/keep_position.txt b/doc/keep_position.txt index 05f69bc..25de36f 100644 --- a/doc/keep_position.txt +++ b/doc/keep_position.txt @@ -20,17 +20,6 @@ especially ones that work on the entire buffer: > :KeepPosition %!tidy < -You will generally want to use this command as above, without a range. -However, if you do specify a range, it will only preserve the view if the last -change to the buffer--presumably made by your nominated command--entirely -encompassed the given range. This is checked with the |'[| and |']| marks. - -The author uses the range functionality to make a "conditional jump"; only -jump to the changes the given command makes if it didn't affect the entire -buffer, e.g.: -> - :nnoremap u :<C-U>%KeepPosition undo<CR> -< AUTHOR *keep_position-author* Written and maintained by Tom Ryder <tom@sanctum.geek.nz>. |