Discovering the cause of Vim exit status -
on running:
vim /tmp/blah :q echo $?
i exit status of 1
. breaking various things including git. if run vim without vimrc:
vim -u none /tmp/blah :q echo $?
i exit status of 0
. use pathogen disables plugins. have suggestion efficiently determining cause of exit status? i'm aware of running vim verbosely , logging file. should looking specific in file?
if there method of finding exact line determines exit status love know of searching around didn't turn up.
finally found command in help: :cq[uit]
. after verbose logging, search \<cq\%[uit]\>
.
update: there methods alter exit status using vim compiled interpreters support: @ least, following works:
python import sys python sys.exit(1) " (same python3) perl exit 1
i not know other languages enough write here examples of code quit vim different exit status. note such commands inside files sourced using :pyfile
, :rubyfile
, other :*file
should work, code in modules not distributed plugin.
i think efficient way here @ point disabling plugins until find source of problem.
Comments
Post a Comment