summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-17 17:57:51 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-17 17:57:51 +0200
commitbf0a1b6bd5eb60d9e8a751d065ff6f2db36391a9 (patch)
tree65984018b60134f353173e8425a006055ec571b3 /vim
parent00d676cf16b718696001e9572922b84c0f49a2e4 (diff)
vimrc: use a custom statusline
Contains the filetype and window number in addition to the standard one.
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0e1d114..b1da29e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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