dotfiles

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

commit db70d42bcd23371ca18ec733657abba3c507a2af
parent a76f898a7219c32168eb4657d3fbc91674919eec
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed,  5 Feb 2020 21:59:19 +0100

vim: statusline additions

Former-commit-id: 99ef7a4d253e3b99c1436d510c650d8c82029632
Diffstat:
Mvim/autoload/statusline.vim | 3+++
Mvim/plugin/statusline.vim | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/vim/autoload/statusline.vim b/vim/autoload/statusline.vim @@ -55,6 +55,9 @@ endfunction " print the textwrap information (textwidth or wrapmargin) function! statusline#StatuslineWrapCol() + if &textwidth == 0 && &wrapmargin == 0 && &wrap + return "softwrap" + endif if &textwidth == 0 return "TW ".(winwidth(0)-&wrapmargin)."(M".&wrapmargin.")" else diff --git a/vim/plugin/statusline.vim b/vim/plugin/statusline.vim @@ -14,6 +14,7 @@ set statusline+=%* " Clear high set statusline+=%< " Start truncating here set statusline+=\ \ %{statusline#StatuslineBuildCwd()} " Current working directory, replacing home with ~ set statusline+=%= " Move everything after this to the right +set statusline+=%{&spell?'[spell]\ ':''} " Show spellcheck status set statusline+=%y " File type set statusline+=\ [%{&expandtab?'spaces':'tabs'}, " Using spaces or tabs set statusline+=%{strlen(&shiftwidth)?&shiftwidth:'none'}] " Spaces in a tab