Return the current working branch.
Parameters: | status_colors (bool) – determines whether repository status will be used to determine highlighting. Default: False. |
---|
Highlight groups used: branch_clean, branch_dirty, branch.
Divider highlight group used: branch:divider.
Return file directory (head component of the file path).
Parameters: |
|
---|
Return file encoding/character set.
Returns: | file encoding/character set or None if unknown or missing file encoding |
---|
Divider highlight group used: background:divider.
Return file format (i.e. line ending type).
Returns: | file format or None if unknown or missing file format |
---|
Divider highlight group used: background:divider.
Return file name (tail component of the file path).
Parameters: |
|
---|
Highlight groups used: file_name_no_file or file_name, file_name.
Return file size in &encoding.
Parameters: |
|
---|---|
Returns: | file size or None if the file isn’t saved or if the size is too big to fit in a number |
Return file type.
Returns: | file type or None if unknown file type |
---|
Divider highlight group used: background:divider.
Return the VCS status for this buffer.
Highlight groups used: file_vcs_status.
Return the cursor position in the file as a percentage.
Parameters: | gradient (bool) – highlight the percentage with a color gradient (by default a green to red gradient) |
---|
Highlight groups used: line_percent_gradient (gradient), line_percent.
Return the current vim mode.
Parameters: | override (dict) – dict for overriding default mode strings, e.g. { 'n': 'NORM' } |
---|
Return a comma-separated list of modified buffers.
Parameters: |
|
---|
Return a file modified indicator.
Parameters: | text (string) – text to display if the current buffer is modified |
---|
Return a paste mode indicator.
Parameters: | text (string) – text to display if paste mode is enabled |
---|
Return the position of the current view in the file as a percentage.
Parameters: |
|
---|
Highlight groups used: position_gradient (gradient), position.
Return a read-only indicator.
Parameters: | text (string) – text to display if the current buffer is read-only |
---|
Return current visual column with concealed characters ingored
Parameters: | gradient (bool) – Determines whether it should show textwidth-based gradient (gradient level is virtcol * 100 / textwidth). |
---|
Highlight groups used: virtcol_current_gradient (gradient), virtcol_current or col_current.