lunixbochs/actualvim — pull request #34 by SnoringFrog (2014-08-27 18:20:44+00:00)
Title: Added Insert Mode Lock

In short, I added a setting to 'lock' insert mode, so that once insert mode is entered, it cannot be exited if the lock is turned on (basically, it listens for any keys/key-combos that would exit insert mode and just doesn't pass them to vim)

What it doesn't do (yet) is automatically switch you to insert mode when you turn on the lock. Currently it's toggled via Preferences -> Package Settings -> Actual Vim -> Insert Lock.

What I know/think it still needs:
- To force you into insert mode when you turn it on. (Using a settings.add_on_change() to send an "i" keypress would make this simple enough; I just didn't get a chance to put that together yet)

- To have a keyboard shortcut.