commit 6b89e54b953ffc3f2a914d3be4fa9481f3a0125a
parent ed2064967cd112e1b9ce7370f3c4f47d01b42ddb
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Thu, 30 Aug 2018 15:14:50 +0200
Added file type to vim status bar (and comments)
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dotfiles/vim-config/editor.vimrc b/dotfiles/vim-config/editor.vimrc
@@ -34,11 +34,12 @@ set si
set foldmethod=indent
" Status bar
-set laststatus=2
-set statusline=\ %F%m\%r%h\ %w
-set statusline+=\ \ CWD:\ %r%{getcwd()}%h
-set statusline+=%=%l,%c
-set statusline+=\ \ B%n
+set laststatus=2 " Always show status bar
+set statusline=\ %F%m\%r%h\ %w " Full path, flags (modified, readonly, help, preview)
+set statusline+=\ \ CWD:\ %r%{getcwd()}%h " Current working directory
+set statusline+=%=%l,%c " Line number, column number
+set statusline+=\ %y " File type
+set statusline+=\ \ B%n " Buffer number
" Show matching brackets
set showmatch