17 lines
218 B
Text
17 lines
218 B
Text
|
# blank-line activity:
|
||
|
# Merge adjacent blank lines. Loop til no change.
|
||
|
:blin
|
||
|
/^$/,/^ *[^ ]*.*$/{
|
||
|
/^$/N
|
||
|
s/^ *\n *$//
|
||
|
}
|
||
|
t blin
|
||
|
#
|
||
|
/^$/,/^ *[^ ]*.*$/{
|
||
|
/^$/N
|
||
|
# Transpose <blank line> <end comment>
|
||
|
/^ *\n\*\/$/c\
|
||
|
*\/\
|
||
|
|
||
|
}
|