diff --git a/vim/config/after.vim b/vim/config/after.vim index 5b7b67a..161c64e 100644 --- a/vim/config/after.vim +++ b/vim/config/after.vim @@ -52,7 +52,7 @@ endif autocmd BufEnter,FileType help* setlocal nocursorline "remove the horizontal cursor line "load help in an 80 char vertical split if the window is wider than 140 characters, otherwise load horizontally at 33% of the height - autocmd BufEnter,FileType help* if (&columns >= 140)|wincmd L|vertical resize 80|else|wincmd j|sp|wincmd =|q|wincmd k|endif + autocmd BufEnter,FileType help* if (winwidth(0) >= 140)|wincmd L|vertical resize 80|endif "settings for buffers in diff mode autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index fd3d412..414a9f4 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -286,7 +286,7 @@ scriptencoding utf-8 let g:vimfiler_force_overwrite_statusline = 0 function! LLModified() - return &ft =~ 'help' ? '' : &modified ? '+' : &modifiable ? '' : '-' + return &ft =~ 'help' ? '' : &modified ? '💾 ' : &modifiable ? '' : '-' endfunction function! LLReadonly() diff --git a/vim/config/settings.vim b/vim/config/settings.vim index d6cb8c9..8fbe30c 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -56,6 +56,8 @@ "USER INTERFACE: {{{ set laststatus=2 showcmd statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "statusline init and config + set winheight=10 winminheight=5 "set the minimum window height to 10 lines + set winwidth=10 winminwidth=5 "set the minimum window width to 10 columns set noshowmode "don't display mode information handled by lightline set lazyredraw "don't redraw the screen while macros are executing set noequalalways "don't force splits to be equal in size when closing or opening one