t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Feature request: gi binding #1019

Closed paradox460 closed 6 years ago

paradox460 commented 6 years ago

Apologies if this is already possible with the existing command systems.

In vim, you can do gi and switch to insert mode at the location you previously left insert mode

To quote vim help:

Insert text in the same position as where Insert mode was stopped last time in the current buffer. This uses the '^ mark. It's different from "`^i" when the mark is past the end of the line. The position is corrected for inserted/deleted lines, but NOT for inserted/deleted characters. When the :keepjumps command modifier is used the '^ mark won't be changed.

This is useful because you can be writing, exit insert mode, go do some visual/ex mode manipulation, then press gi and resume exactly where you left off

t9md commented 6 years ago

Did you tried? gi and gI is supported since very long ago.

paradox460 commented 6 years ago

Hrm, I tried it before opening this ticket, and couldn't get it working. But I just tried it again and it works perfectly.

Thank you!