Start in Vim insert mode by default.


#1

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.


#2

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);