blob: fa6e1a58db339cd437903e063f31e217c95f1abe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"
" squeeze_repeat_blanks.vim: User command to reduce all groups of blank lines
" to the last line in that group, deleting the others. Good for filtering
" plaintext mail that's been extracted from HTML.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_squeeze_repeat_blanks') || &compatible || v:version < 700
finish
endif
let loaded_squeeze_repeat_blanks = 1
" User command for the above
command! -range=% SqueezeRepeatBlanks
\ call squeeze_repeat_blanks#Squeeze(<line1>, <line2>)
|