David Fishburn wrote:
Vim 7.4.446 Windows 7 32 bit

In an autocmd (BufWritePost) I would like to create a new file and pass the contents of the current file through some OS program (like sort for example).

Hello, David:

It was suggested to me that perhaps RunView might help you do what you want; its available at http://www.drchip.org/astronaut/vim/index.html#RUNVIEW .

RunView doesn't create a separate file, though, but it does open a separate window with a filter's output. By default that filter is ksh, but its easily changed: let g:runview_filtcmd="someotherfilter". If there's a filetype involved, you might want to put the g:runview_filtercmd line in .vim/ftplugin/FILETYPE/FILETYPE.vim .

Regards,
Chip Campbell

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

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to