wangxu [EMAIL PROTECTED] 写于 2007-05-31 01:17:41:
I want to have this function:
formatting my xml file automatically.
or,indent xml element and attributes.
is there any plugin like this?
thanks!
did you set autoindent ?
provide that there's $VIMRUNTIME/indent/xml.vim it should do automatic
Op woensdag 30 mei 2007, schreef wangxu:
I want to have this function:
formatting my xml file automatically.
or,indent xml element and attributes.
is there any plugin like this?
thanks!
Well, if you're on a unix machine with xmllint installed, you could do
the following:
setlocal
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
Or just try gg=G after you had opened your xml file.
4) to reformat an existing file:
gggqG
What is the actual difference of these two commands? I usually use =
for code and gq for text, so I presumed that one was for formatting
and one was for 'linewidth'ing.
--
-fREW
fREW wrote:
Or just try gg=G after you had opened your xml file.
4) to reformat an existing file:
gggqG
What is the actual difference of these two commands? I usually use =
for code and gq for text, so I presumed that one was for formatting
and one was for 'linewidth'ing.
You
On 5/30/07, A.J.Mechelynck [EMAIL PROTECTED] wrote:
fREW wrote:
Or just try gg=G after you had opened your xml file.
4) to reformat an existing file:
gggqG
What is the actual difference of these two commands? I usually use =
for code and gq for text, so I presumed that one was
Op woensdag 30 mei 2007, schreef wangxu:
I want to have this function:
formatting my xml file automatically.
or,indent xml element and attributes.
is there any plugin like this?
thanks!
Well, if you're on a unix machine with xmllint installed, you
could do the following: