Start in Vim insert mode by default.


Hi there!
I am making Online PHP Debugger using Vim mod (keymap/vim.js).
But I want it to start with insert mode instead of command mode by default.
Could you please tell me how to do that?
Thank you.


Hi, I came across the same question and didn’t find a way to configure the desired behavior. However a little patch just does the job. Add the following line at the end of the enterVimMode function in vim.js:

      actions['enterInsertMode'](cm, {insertAt: 'inplace'}, cm.state.vim);