| > I am trying to set up a simple menu item, on a custom menu, to perform | > validation of an xml file in an open buffer (using xmllint, and to | > redirect the output to an empty buffer, or a quickfix buffer. | > | > How would I go about with this? I have done this manually by pipeing a | > visual selection through xmllint - but then I get the results back to my | > selection (I fix the errors, and undo, which works, but is messy). | | If I see that right, all you need to to is :compiler xmllint and vim | will automatically load $VIMRUNTIME/compiler/xmllint.vim which sets up a | few settings for using xmllint as your "compiler". Then you only need to | :make to have the current buffer checked with xmllint and have a | quickfix buffer opened, with all error messages.
Hmm - thanks - that sounds very interesting. Unfortunately this doen't produce anything, even when I introduce obvious errors in the xml-file. Just nothing happens when I do :make... I am on Windows Vista 64-bit, using gvim 7.2 (64-bit) - if that matters. And I know that I have a working xmllint.exe handy (in my path). Cheers, Hugo --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
