On Fri, Jan 02, 2009 at 05:36:26PM -0900, Tim Johnson wrote:
> 
> I'm using vim 7.10 on ubuntu 7.10 with python compiled in.
> I would like to be able to 
> 
> 1)select some text
> 2)write that text to a file in either 'w' mode or 'a' mode
>    I.E. 'w' = original contents of file are removed (truncated)
>            something like emacs write-region => 
>                (Write current region into specified file)
>         'a' = select text is appended to original contents
> and do so as 'invisibly' as possible.

A bit hacky but it works: filter it throught tee.

For 'w', enter !tee /foo/bar
for 'a', enter !tee -a /foo/bar

Attachment: pgpr8x0gv16nQ.pgp
Description: PGP signature

Reply via email to