diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-06-17 17:57:51 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-17 17:57:51 +0200 |
commit | bf0a1b6bd5eb60d9e8a751d065ff6f2db36391a9 (patch) | |
tree | 65984018b60134f353173e8425a006055ec571b3 /vim/vimrc | |
parent | 00d676cf16b718696001e9572922b84c0f49a2e4 (diff) |
vimrc: use a custom statusline
Contains the filetype and window number in addition to the standard one.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -39,6 +39,14 @@ set tabstop=4 set mouse=a set ttymouse=sgr +" statusline +" path [Help][Preview][RO][+][ftype] +set statusline=%(%f\ %h%w%r%m%y\ %=\ %1*[%{winnr()}]%*%) +" divider between left and right-aligned bits +set statusline+=%= +" line,byte column[-virtual column] +set statusline+=%(%l,%c%V\ %=\ %P%) + " use standard places for the vim state files set dir=~/.cache/vim/swap set backupdir=~/.cache/vim/bkp |