Skip to content

Instantly share code, notes, and snippets.

@mugyu
Created June 1, 2014 22:37
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mugyu/6eea3e4f5906bf5e9eb6 to your computer and use it in GitHub Desktop.
Save mugyu/6eea3e4f5906bf5e9eb6 to your computer and use it in GitHub Desktop.
vimscript の デバッグをする時のあれやこれや
#
# Learn Vimscript the Hard Way - Echoing Messages
# http://learnvimscriptthehardway.stevelosh.com/chapters/01.html
#
echomsg string(obj)
:message
"
" NaN days - Vimscript のデバッグに使えそうなコマンド
" http://subtech.g.hatena.ne.jp/motemen/20080626/1214451602
"
" 関数が定義されているファイルを調べる
:verbose function /FunctionName/
" スクリプトが実行される様子を詳しく眺める
:99verbose YourCommandHere
" デバッグする (ステップ実行、ブレークポイントなど)
:debug YourCommandHere
"
" vimscript - Debugging Vim plugins with call traces - Stack Overflow
" http://stackoverflow.com/questions/9656429/debugging-vim-plugins-with-call-traces
"
" $ vim -V[N]{filename}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment