Skip to content

Instantly share code, notes, and snippets.

@brianfoshee
Created March 22, 2016 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianfoshee/8b8a5007eafcced000cb to your computer and use it in GitHub Desktop.
Save brianfoshee/8b8a5007eafcced000cb to your computer and use it in GitHub Desktop.
setting a default status line without airline
set laststatus=2 " Always show status line
set statusline=%f " Path to the file
set statusline+=%< " If status line is too long truncate here
set statusline+=\ %y " File type, e.g. [go]
set statusline+=%r " [RO] if file is read only
set statusline+=%m " [+] if file is modified
set statusline+=%= " Switch to right side
set statusline+=%p%% " Percentage through file in lines
set statusline+=\ %l,%c " Line, Column numbers
set showmode " Show current mode below the status line on left side
" (when not in normal mode)
set showcmd " Show partial commands below the status line on the
" right (and selected characters/lines in visual mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment