This is a set of additional commands that I use in conjunction with ModalEdit to enable faster workflows.
When pasting content that consists of full lines, Vim provides special support that makes editing faster:
Pcauses the lines to be fully inserted before the current cursor line;pcauses the lines to be fully inserted after the current cursor line.
This happens even if the cursor is in the middle of the line. In both cases the cursor gets placed at the ^start of the first inserted line.
To configure this, add to "modaledit.keybindings":
"p": {
"command": "modalcommands.vimPaste",
"args": {
"before": false
}
},
"P": {
"command": "modalcommands.vimPaste",
"args": {
"before": true
}
},
VS Code + johtela.ModalEdit. I mean, you can run the commands here
straight from the palette but it won't be very fast.
See the documentation or johtela.ModalEdit on how to add these
commands to modaledit.keybindings.
I don't exactly know what I'm doing.
No functional changes. Includes an icon.
Initial release. Just modalcommands.vimPaste present.