commit 9787ceefb68c7d7d36209e21203a7e0fe9c77102
parent 9be146a7d349bd717a3d44874af76fc5f76bf8da
Author: Remy Noulin <loader2x@gmail.com>
Date: Mon, 11 Oct 2021 12:27:43 +0200
change vim status line to show buffer number and total line number
dotfiles/.vimrc | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
Diffstat:
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc
@@ -168,16 +168,6 @@ highlight Visual cterm=reverse ctermbg=NONE
"let g:CtrlSpaceSaveWorkspaceOnSwitch = 1
"let g:CtrlSpaceSaveWorkspaceOnExit = 1
-" syntastic
-set statusline+=%#warningmsg#
-set statusline+=%{SyntasticStatuslineFlag()}
-set statusline+=%*
-
-let g:syntastic_always_populate_loc_list = 1
-let g:syntastic_auto_loc_list = 1
-let g:syntastic_check_on_open = 1
-let g:syntastic_check_on_wq = 0
-
" quickfixsigns
nnoremap <F12> :QuickfixsignsToggle<cr>
@@ -195,9 +185,19 @@ nnoremap <F11> :SyntasticToggleMode<cr>
nnoremap <F5> :UndotreeToggle<cr>
" display status line and filename
-set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L"
+set statusline=%f%m%r%h%w\ [%n]\ %=%4v,%4l\ of\ %L
set laststatus=2
+" syntastic
+set statusline+=%#warningmsg#
+set statusline+=%{SyntasticStatuslineFlag()}
+set statusline+=%*
+
+let g:syntastic_always_populate_loc_list = 1
+let g:syntastic_auto_loc_list = 1
+let g:syntastic_check_on_open = 1
+let g:syntastic_check_on_wq = 0
+
" press f to show function name in C programs
fun! ShowFuncName()
let lnum = line(".")