aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-04 01:05:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-04 01:05:58 +1200
commit43d2bcbf6aeb1f4fa3201f004bf66488275843ac (patch)
treeaf8f88cb79a26ef4ce561b4d343bdf183c36bedb
parentMerge branch 'release/v0.1.0' into develop (diff)
downloadvim-keep-position-43d2bcbf6aeb1f4fa3201f004bf66488275843ac.tar.gz
vim-keep-position-43d2bcbf6aeb1f4fa3201f004bf66488275843ac.zip
Add command example
-rw-r--r--doc/keep_position.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/keep_position.txt b/doc/keep_position.txt
index 6f1d516..25de36f 100644
--- a/doc/keep_position.txt
+++ b/doc/keep_position.txt
@@ -15,8 +15,11 @@ COMMANDS *keep_position-commands*
*:KeepPosition*
Run the given command while preserving the cursor position and window view.
-Works rather like |:keepalt| or |:keepjumps|.
-
+Works rather like |:keepalt| or |:keepjumps|. It's good for filters,
+especially ones that work on the entire buffer:
+>
+ :KeepPosition %!tidy
+<
AUTHOR *keep_position-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.