Anatomy of a "part":
Start of highlighting | Dynamic content | End of highlighting |
---|---|---|
%#IsModified# |
%{&mod?expand('%'):''} |
%* |
- Non-empty parts are visible because they are not empty.
- Empty parts are not visible because they are empty.
- If you want to hide a part, make it empty.
- If you want to show a part, make it non-empty.
- Part A and part B are always included in the status-line but they can be empty.
- Part A is visible only when the current buffer is modified because it contains the buffer name only when it's modified.
- Part B is only visible when the current buffer is not modified because it contains the buffer name only when it's not modified.