From d9dc3b33bf2247197e9e83daa0e83807a770bf48 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 15 Apr 2018 14:17:13 +0200 Subject: [PATCH] [vim] better status line (no percentage) --- vim/vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 51abdf2..691c80b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -98,8 +98,12 @@ set nocompatible let g:rainbow#pairs = [['(',')'], ['[',']'], ['{','}']] - " line : col (% of total) - let g:airline_section_z = airline#section#create(['%4l:%3v (%p%% of %L)']) + if has('multi_byte') && &encoding ==# 'utf-8' + let g:airline_section_z = airline#section#create(['ℓ%4l/%L 𝚌%3v']) + else " line / total : col + let g:airline_section_z = airline#section#create(['L%4l/%L c%3v']) + endif + if !exists('g:airline_symbols') let g:airline_symbols = {} endif