On 07/11/10 07:22, Tao Joannes wrote:
Yo!

I'm using vim to write a novel, and lots of other short stories, etc.

One problem I always have is that I find it difficult to resist the
temptation to go back and edit while I'm doing the initial draft.

I've got a script that handles file management, wordcount, backups, etc,
that's working pretty well, and I'd like to work in a "drafting" mode
that will make VIM work like a typewriter.

What I mean is that the navigation is gone, except for switching between
insert and command mode.  All I want is type, space, enter, and escape,
basically, having it go automatically to the end of the file when
opening would be nice, too.

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.

I've forgotten more about vi commands, etc, than I can remember now, so
any help to get this working would be greatly appreciated.

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

Well, what about

        $r !cat

?   :-P

Please explain what is kludgy about it. Or, for context:

(untested)
        let s:save_more = &more
        set nomore
        %p
        $r !cat
        let &more = s:save_more

(omit the s: prefix (twice) if you type these at the command-line).


Another possibility (also untested) would be
        :set term=dumb

which essentially makes Vim believe that you're displaying on a teletype-compatible terminal.

Best regards,
Tony.
--
Any resemblance between the above views and those of my employer, my terminal,
or the view out my window are purely coincidental.  Any resemblance between
the above and my own views is non-deterministic.  The question of the
existence of views in the absence of anyone to hold them is left as an
exercise for the reader. The question of the existence of the reader is left
as an exercise for the second god coefficient.  (A discussion of
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
                                                (Ralph Jennings)

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

Reply via email to