Script Roundup: EightHeader, FormatToWidth

EightHeader

Alex R. Young
usevim
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:

Into this:

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.

--

--