I use the following command to indent a file. But it always showing up
something in the screen.

vim -n -X -c "set shiftwidth=2" -c "set expandtab" -c "set sts=2" -c
"set ts=2" -c "normal gg=G" -c "x"  file.txt

Then I use the following command to silent the screen. But the
indentation becomes incorrect. I suspect that the files in ~/.vim/ are
not correctly loaded. Could somebody let me know what is the correct
way to silent the screen and load files in ~/.vim/?

vim -n -X -E -s -c "set shiftwidth=2" -c "set expandtab" -c "set
sts=2" -c "set ts=2" -c "normal gg=G" -c "x" file.txt

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to