On 11/08/10 10:23, Robert Hicks wrote:
If I open an XML file in Notepad everything is in tags. Good.

If I open the same XML file in Vim I am getting the< to display a
"<" etc.

How do I turn it off...or can I?

I've opened a lot of XML files in Vim, and have never experienced vim mangling my text/tags. This could be a couple things:

1) Notepad being too smart for its own good (unlikely)

2) you *think* you're opening it in Notepad, but it's some other tool. I know on Win32, several XML files are sniffed for content such as Excel's "XML Document" format, differing from DOCX) and opened with something other than the default "open this with Notepad" (or IE, or whatever your file associations specify). If you're really opening Notepad and using the File->Open menu to navigate to the XML file and open it, and you still see kosher XML, then it's likely good XML data. Which then indicates something in Vim...

3) a Vim plugin that you have enabled that escapes HTML entities

To test for #3, I'd try starting vim with

  vim -u NONE my_file.xml

to start a virgin copy of Vim. If you appropriately see what you expect (i.e. non-escaped entities), then some plugin/script is interfering with things. If you then restart vim normally and open the file

  vim my_file.xml

and issue

  :scriptnames

and include the output in your reply, it might help track down the rogue script that's hosing your XML.

Hope this gets you closer to an answer,

-tim



--
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

Reply via email to