7 Comments
User's avatar
bobbyquine_'s avatar

Hmm, personally I'd prefer not to use a plugin when I can achieve the same thing with 'o' and 'O'.

Expand full comment
Colin Bartlett's avatar

Good feedback, thanks! Those will do slightly different things, as o and O will leave you in insert mode. But they are also useful things to know. Thanks for sharing!

Expand full comment
arcseconds's avatar

Certainly but as othniel points out (in a rather... colourful manner), two keystrokes in standard Vim gets you the same effect.

So the question is why is [<space> better than o<esc>?

I suppose it's very slightly more mnemonic, '[' is a bit like a really blunt arrow pointing before, and <space> brings whitespace to mind?

The ergonomics are better, as escape is a long way away but the gap is closed a bit if you use Ctl-C or Ctl-[ to get back to normal mode, and they're very comparable if you have Caps Lock mapped to something that gets you back to normal mode.

(myself I have Caps Lock mapped to compose, but one can't have everything I suppose...)

Expand full comment
PK's avatar

Thanks a lot! The plugin is very cool and this is just one of it's sensible features

Expand full comment
othniel's avatar

Not useful. If I want to add a line after or before the line the cursor is currently on:

why shouldn't I use the normal vim commands o<esc> or O<esc> respectively

boo hiss.

Expand full comment
Colin Bartlett's avatar

Thanks for the feedback!

Expand full comment
Filip Banák's avatar

O expects you to insert stuff. If you do not want to insert and just stay on the line, this can save you keystrokes. I can also see this used better in macros and scripts than o/O.

Expand full comment