Sunday, November 7, 2010

Re: Make it work like a typewriter?

On 11/07/10 01:58, Tony Mechelynck wrote:
> On 07/11/10 07:22, Tao Joannes wrote:
>> I know I could do it with a 'cat' command that captures
>> standard in and appends it to whatever file I'm editing, but
>> that would get kludgy on the scripting, so I'd much rather
>> just have an alternate vimrc that made it behave as
>> specified. I'd have a toggle setting for "draft" or
>> "revision" mode, then would select the files by number using
>> a case/select.
>
> Well, what about
>
> $r !cat

Does this differ any from just using "append" (":help :a") mode?

:$a

other than that you end it by typing a lone period on the line
instead of with an EOF? (and the cautioned "lines-beginning with
a backslash", though if Tao is writing a novel, I expect this is
less of a concern...I can't think of many novels I've read that
contain back-slashes unless you're also including markup)

-tim

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