VsVim / VsVim

Vim Emulator Plugin for Visual Studio 2015+
Other
3.67k stars 401 forks source link

"gi" to enter insert mode at the previous inserted location #2755

Open saylay opened 4 years ago

saylay commented 4 years ago

Feature category

Usually in vim I will perform insert action, then get into normal mode to go to other line in the file, after that I would perform "gi" keystrokes to go back to insert mode at the last location I was editing.

Describe the solution you'd like For gi keystrokes to be functioning like in vim editor.

Describe alternatives you've considered Since the keystrokes is not functioning like in vim, I have to press u to undo the text I had inserted, so the cursor will come back to the location where I was editing, redo to bring back the text, after that, then I'd be able to enter insert mode at the location I was on before.

sql-koala commented 4 years ago

Hi, you can build this feature yourself pretty easy using the "^" mark: nnoremap gi `^i

saylay commented 4 years ago

@sqlkoala Ok thank you just added it to .vsvimrc, didn't know I could do that with `^i 👍