From 7e306d22762ee679b2fe085bac6418b92f830447 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 22 Aug 2019 13:46:00 +0200 Subject: .vimrc: add file encoding and format to statusline Signed-off-by: Tobias Klauser --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index 59ad0a5..9d325d5 100644 --- a/.vimrc +++ b/.vimrc @@ -41,6 +41,8 @@ set ruler " Display ruler with cursor positions " Buffer, filename, line, total lines, column, ASCII value "set statusline=[%n]\ %f\ %m\ %l/%L,%c\ ASCII:\ %3b +"set statusline+=[%{strlen(&fenc)?&fenc:'none'}, " file encoding +"set statusline+=%{&ff}] " file format " maximum number of tabs to open set tabpagemax=20 -- cgit v1.2.3-54-g00ecf