From ba42732cce73dadfe09549e58cd8ce9031c9efa9 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 25 Jan 2020 19:14:58 +0000 Subject: Make active mode nicer --- vimrc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index db9e53a..4f4fb64 100644 --- a/vimrc +++ b/vimrc @@ -63,19 +63,12 @@ function! StatusLine(current, width) if a:current let l:s .= crystalline#mode() . crystalline#right_mode_sep('') - else - let l:s .= '%#Crystalline#' - endif - let l:s .= ' %<%f%h%w%m%r ' - if a:current - let l:s .= crystalline#right_sep('', 'Fill') . ' %{fugitive#statusline()}' - else - let l:s .= ' %{fugitive#statusline()}' endif + let l:s .= '%#Crystalline# %<%f%h%w%m%r %{fugitive#statusline()}' let l:s .= '%=' if a:current - let l:s .= crystalline#left_sep('', 'Fill') . ' %{&paste ?"PASTE ":""}%{&spell?"SPELL ":""}' + let l:s .= ' %{&paste ?"PASTE ":""}%{&spell?"SPELL ":""}' let l:s .= crystalline#left_mode_sep('') endif if a:width > 80 -- cgit v1.2.3