On Fri, October 16, 2009 10:21 am, Hugo Ahlenius wrote: > 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. regards, Christian -- :wq --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
