Fix help in small windows + set minimum widthxheight + more utf-8 in lightline

This commit is contained in:
Kevin MacMartin 2014-12-01 01:55:15 -05:00
parent 1f10a4bd20
commit 95a0548ebc
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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()

View file

@ -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