summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-08-22 13:46:00 +0200
committerTobias Klauser <tklauser@distanz.ch>2019-08-22 13:46:00 +0200
commit7e306d22762ee679b2fe085bac6418b92f830447 (patch)
tree830249d4d3fab4f45b168be6a0778ae9713acc60
parentf5f242647ecdd375fbe65ab75d12d0994b2beeea (diff)
.vimrc: add file encoding and format to statusline
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
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