Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One thing I would love to see—and which I can only assume exists—is a guide like this, tailored to writing prose rather than code. This article maintains certain assumptions that are held by nearly every other guide, like 'You are always in normal mode, and only enter insert mode for short bursts of typing text, after which you press <Esc> to go to normal mode.' Which is true and useful for coding, but slightly less so for prose—not entirely less so, and it's still a good idea to get in the habit of busting out of insert mode when you've finished whatever thought you're writing down, but the lines between thinking, composing and editing are blurrier than in prose.

Nevertheless vi controls can be pretty semantic, and lend themselves pretty effectively to working with words, clauses, sentences, and paragraphs. On the other hand, using search for mid-paragraph navigation is an order of magnitude less efficient in prose, when you're so much more likely to have symbols and words doing totally different things in many places in your text.



Here is a 13 page guide specifically aimed at writers using Vim or Gvim. Explains how the movement commands change with soft wrapping of lines and so on.

http://therandymon.com/woodnotes/vim-for-writers/vimforwrite...


http://www.associatedcontent.com/article/765005/the_vim_text...

Some suggestions for .vimrc to change movement behaviour and line wrapping. I'm not a vimer by the way, still using Gedit.


Thank you keithpeter and keithpeter for those two links.

A minor thing that's useful if you stay in insert mode for long periods: You can click the mouse anywhere while in Insert mode, and your cursor/insertion point will move to where you click. This works in Gvim, and also in vim, but I suppose vim depends on how your terminal is set up. I've done nothing special to my terminal or my vim.


I use VIM mostly for writing prose, and I learned VIM through these same tutorials. I don't think it's anything different.

I don't edit while I'm writing the first draft. But when I do edit, I'm always pressing <Esc>. That's why changed the keymap.

/<text> is an editor's best friend.


I can't be the only one who always hits slash and starts typing regex instinctively when I switch to another program (eg Excel...) to try to search


Use Ctrl-o in insert mode to dip into normal mode for just 1 command. Also, use Ctrl-r in insert mode to paste the contents of an arbitrary clipboard (Ctrl-r, a to paste register "a, Ctrl-r " to paste register "" and so on).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: