aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:14:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-30 11:14:22 +1200
commit0d654e3d9d97f346cfe09fa0f7b3a69fe1c14d48 (patch)
tree2e271f03cdd3225a46d3d63d785130dc864e207d /doc
downloadvim-squeeze-repeat-blanks-0d654e3d9d97f346cfe09fa0f7b3a69fe1c14d48.tar.gz
vim-squeeze-repeat-blanks-0d654e3d9d97f346cfe09fa0f7b3a69fe1c14d48.zip
First versionv0.1.0
Diffstat (limited to 'doc')
-rw-r--r--doc/squeeze_repeat_blanks.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/squeeze_repeat_blanks.txt b/doc/squeeze_repeat_blanks.txt
new file mode 100644
index 0000000..ab2cca5
--- /dev/null
+++ b/doc/squeeze_repeat_blanks.txt
@@ -0,0 +1,37 @@
+*squeeze_repeat_blanks.txt* For Vim version 7.0 Last change: 2018 Aug 30
+
+DESCRIPTION *squeeze_repeat_blanks*
+
+This plugin provides a user command to reduce multiple blank lines to the last
+blank line in that group, for the given range or the whole buffer by default.
+What constitutes a "blank" line is configurable per-buffer.
+
+REQUIREMENTS *squeeze_repeat_blanks-requirements*
+
+This plugin is only available if 'compatible' is not set. It also requires the
+|+user_commands| feature.
+
+COMMANDS *squeeze_repeat_blanks-commands*
+
+ *:SqueezeRepeatBlanks*
+Find repeated blank lines matching the |b:squeeze_repeat_blanks_blank| pattern
+and delete all but the last line of every such group, reporting the number of
+lines removed. Accepts a range and defaults to the whole buffer.
+
+OPTIONS *squeeze_repeat_blanks-options*
+
+ *b:sequeeze_repeat_blanks_blank*
+The |buffer-variable| `b:squeeze_repeat_blanks_blank` can be set to a pattern
+that constitutes a blank line, for example including whitespace, or a comment
+or quoting leader. This might be desirable for some filetypes. The
+`:SqueezeRepeatBlanks` command defaults to using `^$`, for a true blank line.
+
+AUTHOR *squeeze_repeat_blanks-author*
+
+Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
+
+LICENSE *squeeze_repeat_blanks-license*
+
+Licensed for distribution under the same terms as Vim itself (see |license|).
+
+ vim:tw=78:ts=8:ft=help:norl: