On Saturday, June 30, 2012 4:12:46 PM UTC-5, Peng Yu wrote: > Hi, > > I just want to run some vim script and print output to stdout and > exit. The following will print something at the bottom of the screen > without exiting vim. Is there a way to do want I want? Thanks! > > vim -c "source main.vim" > > Regards, > Peng
You can make Vim quit after running the script like this: vim -c "source main.vim" -c "q" Or even better: vim -S main.vim -c "q" But I don't know of any way to make Vim print arbitrary stuff to stdout. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
