From 4f005ab7e2c176f0e72f7bf209b10427c9b626a7 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 18 Oct 2017 00:00:57 -0400 Subject: [PATCH] Assemble status line in parts Mostly, this was so I could make sure not to accidently run a :FixWhitespace and remove the trailing space on my status line that keeps the buffer number off the edge --- vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 0aff705..dde18e3 100644 --- a/vimrc +++ b/vimrc @@ -28,7 +28,13 @@ call plug#end() filetype plugin indent on " STATUS LINE -set statusline=%<\ %f%{ZoomState()}\ %m%r%y%w%=\ Line:\ %l\/%L\ [%p%%]\ Col:\ %c\ Buf:\ #%n\ +set statusline= +set statusline+=%<\ %f%{ZoomState()} +set statusline+=\ %m%r%y%w%= " what am i doing here +set statusline+=\ Line:\ %l\/%L\ [%p%%] +set statusline+=\ Col:\ %c +set statusline+=\ Buf:\ #%n +set statusline+=\ " trailing space is with purpose " OPTIONS set fileformats=unix,mac,dos " File format prefer unix endings