summaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-28 14:19:44 +0100
committerAnton Khirnov <anton@khirnov.net>2021-12-28 14:19:44 +0100
commit1707bf01db3c52ca979a4a33a49b4dd711aaa5ba (patch)
treeee880cae858b4f67b65189dab8492a30c2efa18d /vim/vimrc
parentb84528043da0da870eccde11380b1234441ccc29 (diff)
vimrc: highlight the modified flag in statusline
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e85650e..27b509b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -44,8 +44,13 @@ set ttymouse=sgr
set clipboard=
" statusline
-" path [Help][Preview][RO][+][ftype]
-set statusline=%(%f\ %h%w%r%m%y\ %=\ %1*[%{winnr()}]%*%)
+"
+" colors:
+" User1: window number
+" User2: modified flag
+"
+" path [Help][Preview][RO][+][ftype] \\// [window number]
+set statusline=%(%f\ %h%w%r%2*%m%*%y\ %=\ %1*[%{winnr()}]%*%)
" divider between left and right-aligned bits
set statusline+=%=
" line,byte column[-virtual column]