refactor complete

This commit is contained in:
ManjaroOne666 2018-12-02 23:07:39 +00:00
parent f44cb29b3f
commit 2fa5521889
3 changed files with 11 additions and 7 deletions

View File

@ -1,2 +1 @@
nmap <buffer> q :q<CR> nmap <buffer> q :q<CR>
setlocal statusline=%!GetStatus(1)

View File

@ -1,4 +1,2 @@
nmap <buffer> o <CR> nmap <buffer> o <CR>
nmap <buffer> q :q<CR> nmap <buffer> q :q<CR>
setlocal statusline=%!GetStatus(1)

15
vimrc
View File

@ -1287,12 +1287,12 @@ endif
if g:vimrc_enable_statusline if g:vimrc_enable_statusline
set statusline=%!GetStatus(1) set statusline=%!GetStatus(1)
augroup status "{{{ augroup statusline "{{{
autocmd! autocmd!
autocmd WinNew,WinEnter * setlocal statusline=%!GetStatus(1) autocmd WinNew,WinEnter * setlocal statusline=%!GetStatus(1)
autocmd WinLeave * setlocal statusline=%!GetStatus(0) autocmd WinLeave * setlocal statusline=%!GetStatus(0)
" autocmd WinNew * setlocal statusline=%!GetStatus(1) autocmd Filetype qf setlocal statusline=%!GetStatus(1)
" autocmd InsertChange * setlocal statusline=%!GetStatus(1) autocmd Filetype help setlocal statusline=%!GetStatus(1)
augroup END augroup END
"}}} "}}}
@ -1527,8 +1527,15 @@ if g:vimrc_enable_statusline
hi def link LinterInfoActive SpellRare hi def link LinterInfoActive SpellRare
"}}} "}}}
else
set statusline=\
set statusline+=[%n]\ \
set statusline+=%p\ of\ %L
set statusline+=%=
set statusline+=%y\
set statusline+=%r\ %m\ %F
set statusline+=\
endif endif
" TODO set statusline if not using custom statusline
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}
" #tabline {{{ " #tabline {{{