Debian Codegraph @

runtime/plugins/status/help/status.md

raw
1 # Status
2
3 The status plugin provides some functions for modifying the status line.
4
5 Using the `statusformatl` and `statusformatr` options, the exact contents
6 of the status line can be modified. Please see the documentation for
7 those options (`> help options`) for more information.
8
9 This plugin provides functions that can be used in the status line format:
10
11 * `status.branch`: returns the name of the current git branch in the repository
12 where the file is located.
13 * `status.hash`: returns the hash of the current git commit in the repository
14 where the file is located.
15 * `status.paste`: returns "" if the paste option is disabled and "PASTE"
16 if it is enabled.
17 * `status.lines`: returns the number of lines in the buffer.
18 * `status.vcol`: returns the visual column number of the cursor.
19 * `status.bytes`: returns the number of bytes in the current buffer.
20 * `status.size`: returns the size of the current buffer in a human-readable
21 format.