tags:

views:

74

answers:

5

Because the apple store couldn't help me, and indeed had never seen VIM before, despite the fact it comes installed as standard on OSX ;-).

+1  A: 

Either use Mac's onscreen keyboard or use a hotkey program to rebind one of your existing keys to Insert. One Superuser thread provides several Autohotkey equivalents for Mac such as Quicksilver.

Axidos
A: 

you can use 'i' instead of insert

Keshan
in Linux it works.. but i haven't tested it on Mac.
Keshan
That's not the equivalent action, I'm afraid. The insert key toggles between insert and replace.
DarkDust
+1  A: 

With iTerm or iTerm2 you can map an unused key to insert. For example, I've mapped F19 to "send escape sequence" [2~ (that's the xterm escape sequence for the insert key).

In iTerm2, go to preferences, "Bookmarks", select the "Keyboard" tab, click the "+", press the key you want to map, select action "send escape sequence" and then enter [2~.

DarkDust
+2  A: 

Taken from here:

Toggling insert mode

Press Ctrl-Space to start and to stop insert mode (the same suggestion using Shift-Space is above):

nnoremap i imap

Or you may prefer to map Ctrl-Space to a rather than i so that repeatedly pressing Ctrl-Space does not move the cursor back (remember that pressing I allows you to insert a character at the beginning of the line):

nnoremap a imap

You would put this in your .vimrc so it happens on start-up.

mdonovan2010
+2  A: 

Surely you can just do a simple:

inoremap <C-l> <Insert>

I can't say I've ever had to use replace mode enough that <Esc>R wasn't quick enough for me.

Alligator
I wasn't aware of the <Esc>R shortcut- that's good enough for me!
cjm2671