Files
zyedidia.micro/runtime/plugins/status/help/status.md
Zachary Yedidia 5f62f550f3 Add more functions to customize status bar
Adds `status.lines`, `status.vcol`, `status.bytes`, `status.size`,
and exposes some functions from go-humanize to plugins.

Ref #1727
2020-06-24 17:19:42 -04:00

859 B

Status

The status plugin provides some functions for modifying the status line.

Using the statusformatl and statusformatr options, the exact contents of the status line can be modified. Please see the documentation for those options (> help options) for more information.

This plugin provides functions that can be used in the status line format:

  • status.branch: returns the name of the current git branch.
  • status.hash: returns the hash of the current git commit.
  • status.paste: returns "" if the paste option is disabled and "PASTE" if it is enabled.
  • status.lines: returns the number of lines in the buffer.
  • status.vcol: returns the visual column number of the cursor.
  • status.bytes: returns the number of bytes in the current buffer.
  • status.size: returns the size of the current buffer in a human-readable format.