Re: Is there a xml formatter?

2007-05-30 Thread panshizhu
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

Re: Is there a xml formatter?

2007-05-30 Thread Peter Palm
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

Re: Is there a xml formatter?

2007-05-30 Thread A.J.Mechelynck
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

Re: Is there a xml formatter?

2007-05-30 Thread fREW
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

Re: Is there a xml formatter?

2007-05-30 Thread A.J.Mechelynck
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

Re: Is there a xml formatter?

2007-05-30 Thread fREW
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

RE: Is there a xml formatter?

2007-05-30 Thread David Fishburn
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: