Following on from this question - I was wondering if there was a list of all the variables that you can use in the status line in vim - e.g %F
seems to be full file path and %L
seems to be 'total number of lines - would anyone have a link to a comprehensive listing of all of the magic variables?
Asked
Active
Viewed 1,977 times
0

Community
- 1
- 1

phatmanace
- 4,671
- 3
- 24
- 29
-
1`:help statusline`, of course. – romainl May 21 '14 at 20:01
1 Answers
2
That information can be found under :help 'statusline'
; all options are single-quoted in the Vim help. There's a link from :help status-line
, too.
Learn how the excellent and comprehensive :help
is structured; all the information is in there (you just need to know how to find it)!
Additionally, with the %{...}
syntax, you can include arbitrary Vimscript expressions in the statusline as well, so you have all the flexibility you need. Plugins like airline showcase what is possible there; it might be worth exploring plugins like those before rolling your own.

Ingo Karkat
- 167,457
- 16
- 250
- 324
-
2I'd suggest the opposite: play with `statusline` before installing a fancy *line plugin. – romainl May 21 '14 at 20:46