[vim]add function to help vim debugging
This commit is contained in:
parent
1a12c095ca
commit
ae096fb064
16
.vimrc
16
.vimrc
@ -433,6 +433,22 @@ if filereadable(expand('~/.vimrc.local'))
|
||||
source ~/.vimrc.local
|
||||
endif
|
||||
|
||||
|
||||
""""""""""
|
||||
" Debug
|
||||
""""""""""
|
||||
|
||||
"Or start vim with -V[VERBOSENUMBER][FILE]
|
||||
function! ToggleVerbose()
|
||||
if !&verbose
|
||||
set verbosefile=~/.log/vim/verbose.log
|
||||
set verbose=15
|
||||
else
|
||||
set verbose=0
|
||||
set verbosefile=
|
||||
endif
|
||||
endfunction
|
||||
|
||||
"""""""""
|
||||
" Plugin"
|
||||
"""""""""
|
||||
|
Loading…
Reference in New Issue
Block a user