refactor complete
This commit is contained in:
parent
f44cb29b3f
commit
2fa5521889
|
@ -1,2 +1 @@
|
|||
nmap <buffer> q :q<CR>
|
||||
setlocal statusline=%!GetStatus(1)
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
nmap <buffer> o <CR>
|
||||
nmap <buffer> q :q<CR>
|
||||
|
||||
setlocal statusline=%!GetStatus(1)
|
||||
|
|
15
vimrc
15
vimrc
|
@ -1287,12 +1287,12 @@ endif
|
|||
if g:vimrc_enable_statusline
|
||||
set statusline=%!GetStatus(1)
|
||||
|
||||
augroup status "{{{
|
||||
augroup statusline "{{{
|
||||
autocmd!
|
||||
autocmd WinNew,WinEnter * setlocal statusline=%!GetStatus(1)
|
||||
autocmd WinLeave * setlocal statusline=%!GetStatus(0)
|
||||
" autocmd WinNew * setlocal statusline=%!GetStatus(1)
|
||||
" autocmd InsertChange * setlocal statusline=%!GetStatus(1)
|
||||
autocmd Filetype qf setlocal statusline=%!GetStatus(1)
|
||||
autocmd Filetype help setlocal statusline=%!GetStatus(1)
|
||||
augroup END
|
||||
"}}}
|
||||
|
||||
|
@ -1527,8 +1527,15 @@ if g:vimrc_enable_statusline
|
|||
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
|
||||
" TODO set statusline if not using custom statusline
|
||||
|
||||
"----------------------------------------------------------------------------}}}
|
||||
" #tabline {{{
|
||||
|
|
Loading…
Reference in New Issue