aboutsummaryrefslogtreecommitdiff
path: root/plugin/squeeze_repeat_blanks.vim
blob: 760b9e3c4c1c6c74614569939f2929e2f1b05c14 (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! -bar -range=% SqueezeRepeatBlanks
      \ call squeeze_repeat_blanks#(<line1>, <line2>)