Search notes:

vim script: verbosefile

" ..\vimscript\run_.bat verbosefile
" 
" See also command «redir»

redir > verbosefile.out

echo "First line"
echo "Second line"
echo "Currently, verbosefile is " . &verbosefile

" Messages now go to c:\temp\verbose.txt
set verbosefile=c:\temp\verbose.txt

echo "Print more"
echo "and some more"

" Stop sending messages to c:\temp\verbose.txt:
set verbosefile=

echo "Sixth line"
echo "Seventh line"

redir END

q

" First line
" Second line
" Currently, verbosefile is
" Print more
" and some more
" Sixth line
" Seventh line
Github repository about-vim, path: /options/verbosefile.vim

See also

VIM script

Index