Thursday, July 12, 2012

Re: Re: vim: use external program, but direct output to a new vsplitted buffer

On Thu, Jul 12, 2012 at 4:24 PM, ping <songpingemail@gmail.com> wrote:
> hi Ben:
> just came cross this tiny issue again, so shouldn't
>
> :'<,'>w !asciidoc
>
> exactly the same as:
>
> :'<,'>!asciidoc
>
> ?
>

Nope! The first is using the :w command to pass some lines to an
external command.

The second is invoking the external command directly, passing in the
lines, and placing the result back into the buffer to replace the
lines passed in.

They are two separate commands, they do different things.

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

No comments: