0

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?

Community
  • 1
  • 1
phatmanace
  • 4,671
  • 3
  • 24
  • 29

1 Answers1

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