[vim]add function to help vim debugging

This commit is contained in:
Mathieu Maret 2016-05-23 14:52:04 +02:00
parent 1a12c095ca
commit ae096fb064
1 changed files with 16 additions and 0 deletions

16
.vimrc
View File

@ -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"
"""""""""