From 34b1b0be20c6d25492fa4a6f13db3c6c1593cf5e Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 21 Dec 2020 16:15:30 +0000 Subject: [PATCH] VIM: make filename in statusline 30 chars (maximum) --- nvim/.config/nvim/plugin/statusline.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/plugin/statusline.vim b/nvim/.config/nvim/plugin/statusline.vim index bdc39651..4aaeef8d 100644 --- a/nvim/.config/nvim/plugin/statusline.vim +++ b/nvim/.config/nvim/plugin/statusline.vim @@ -66,16 +66,16 @@ function! DetectMode(mode) " red = read only and not modified if &mod == 1 let statusline .= "%#GruvboxAqua#\ " . left - let statusline .= "%#DiffChange#%.20f" + let statusline .= "%#DiffChange#%.30f" let statusline .= "%#GruvboxAqua#" . right . "\ " else if &readonly == 1 let statusline .= "%#GruvboxRed#\ " . left - let statusline .= "%#DiffDelete#%.20f" + let statusline .= "%#DiffDelete#%.30f" let statusline .= "%#GruvboxRed#" . right . "\ " else let statusline .= "%#GruvboxBg4#\ " . left - let statusline .= "%#PmenuThumb#%.20f" + let statusline .= "%#PmenuThumb#%.30f" let statusline .= "%#GruvboxBg4#" . right . "\ " endif endif