[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

16
.vimrc
View File

@ -433,6 +433,22 @@ if filereadable(expand('~/.vimrc.local'))
source ~/.vimrc.local source ~/.vimrc.local
endif 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" " Plugin"
""""""""" """""""""