From 2fa55218897bcded1dddf9524b2502193bc45622 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sun, 2 Dec 2018 23:07:39 +0000 Subject: [PATCH] refactor complete --- vim/after/ftplugin/help.vim | 1 - vim/after/ftplugin/qf.vim | 2 -- vimrc | 15 +++++++++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim index 26497b9..aa798a4 100644 --- a/vim/after/ftplugin/help.vim +++ b/vim/after/ftplugin/help.vim @@ -1,2 +1 @@ nmap q :q -setlocal statusline=%!GetStatus(1) diff --git a/vim/after/ftplugin/qf.vim b/vim/after/ftplugin/qf.vim index 4912c26..78fb903 100644 --- a/vim/after/ftplugin/qf.vim +++ b/vim/after/ftplugin/qf.vim @@ -1,4 +1,2 @@ nmap o nmap q :q - -setlocal statusline=%!GetStatus(1) diff --git a/vimrc b/vimrc index 2651d01..6955c21 100644 --- a/vimrc +++ b/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 {{{