dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d358bc704dd5f80ede43444cdb912dde5a0e244f
parent d10b37f8e949b894968aa7aad8e399e4873457b5
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 15 Apr 2020 22:24:35 +0200

vim: statusline tweaks

Former-commit-id: 024e4f9c6cb84cbb0904250820120a00d0e6d7a4
Diffstat:
Mvim/plugin/statusline.vim | 3+++
Mvim/vimrc | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vim/plugin/statusline.vim b/vim/plugin/statusline.vim @@ -35,3 +35,6 @@ augroup statusline autocmd cursorhold,bufwritepost * unlet! b:statusline_tab_warning autocmd cursorhold,bufwritepost * unlet! b:statusline_trailing_space_warning augroup END + +command! StatuslineWCAdd setlocal statusline+=%{statusline#StatuslineWordCount()} +command! StatuslineWCRem setlocal statusline-=%{statusline#StatuslineWordCount()} diff --git a/vim/vimrc b/vim/vimrc @@ -506,6 +506,8 @@ set ttyfast " Show partial command on last line set showcmd +" Don't show current mode (it's in the statusline) +set noshowmode " Command completion set wildmenu