vim -E -c "normal gg=G" -c "x" file
The above code indent the file from command line. But the following
one can not do so.
vim -E file <<EOF
:normal gg=G
:x
EOF
It seems that I should be able to pass command from stdin. I'm not
sure why it is not working. Could anybody let me know?
Thanks,
Peng
--
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
Monday, August 6, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment