On 11/08/2010 04:56 PM, Tao Joannes wrote:

On Mon, Nov 8, 2010 at 5:50 AM, Christian Brabandt <[email protected]
<mailto:[email protected]>> wrote:

    On Sun, November 7, 2010 7:22 am, 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.

    As a really simple way, would evim help you?

    regards,
    Christian


Thanks for the input, haven't had time to test them all out.

Let me be clear though, I'm not having trouble using vim, lol, I used to
teach a class on the subject.

I'm just trying to figure out a way to limit functionality in a specific
way that would prevent me from going back and changing what I've
written, as a piece of paper in a typewriter would function.

The idea would be to force a forward, forward, always forward sort of
flow to my writing and keep me from second-guessing myself during drafting.

evim and notepad just aren't what I'm looking for, they would take away
all the good parts of vim without eliminating the basic problem, the
ability to go back and change things.

They've got all kinds of neat writing software for other OS's, I'm just
trying to mimic some of their functionality with a script-based VI frontend.

But it looks like cat is gonna be the way to go.

Why not remap the bs, left, up, esc keys to <Nop> ? There's ways to get
around that but I think it should be good enough for your purposes. Cool
question, though. By the way, you might even want to do something a bit
more complicated, like a script that allows you backspace up to 5 chars
or so but then you have to type 10+ chars until you're allowed to
backspace again, so that at least you can fix typos. -ak

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