From bf0a1b6bd5eb60d9e8a751d065ff6f2db36391a9 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 17 Jun 2021 17:57:51 +0200 Subject: vimrc: use a custom statusline Contains the filetype and window number in addition to the standard one. --- vim/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vim') 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 -- cgit v1.2.3