Created
March 22, 2016 19:43
-
-
Save brianfoshee/8b8a5007eafcced000cb to your computer and use it in GitHub Desktop.
setting a default status line without airline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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