wangxu wrote:
I want to have this function:
formatting my xml file automatically.
or,indent xml element and attributes.
is there any plugin like this?
thanks!
I see that an indent/xml.vim is distributed with Vim.
Try the following:
1) In you vimrc, make sure that you enable filetype-related indenting, either by
runtime vimrc_example.vim
or by
filetype plugin indent on
2) If you changed your vimrc, restart Vim.
3) From then on, every xml file should get formatted as you type.
4) to reformat an existing file:
gggqG
Best regards,
Tony.
--
In war we're tough and able.
Quite indefatigable
Between our quests
We sequin vests
And impersonate Clark Gable
It's a busy life in Camelot.
I have to push the pram a lot.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD