Script Roundup: EightHeader, FormatToWidth
EightHeader
Published in
1 min readMay 27, 2014
EightHeader (BitBucket: BimbaLaszlo / vim-eightheader) by Laszlo Bimba is a flexible function for easily creating fold headers and tables of contents.
For example, if you were writing a Vim help file you could convert this:
Options;options
Default mappings;maps
Launch nuclear strike;apocalypse
Into this:
Options........................................................|options|
Default mappings..................................................|maps|
Launch nuclear strike.....................................|apocalypse|
The function’s signature is EightHeader(length, align, oneline, pattern, marker, str)
.
FormatToWidth
FormatToWidth by Ingo Karkat can be used to reformat lines using a configurable width. The basic usage is {Visual}<Leader>gq
, where [count]
specifies the width.