I need to copy the word under cursor, navigate to a different word in the document and replace it with the previous one I copied.
I do this so often that I use some custom key bindings for this.
f maps to yiw (Yank In Word)
ff maps to viwp (Select In Word with Visual mode and Paste)
So I can just f to copy, navigate and ff to replace the word.
How can I specify this custom remapping on VSCodeVim ?
I tried pasting the following into settings.json
, (and a few other using commands with the editor.
prefix) but I can't get it to work.
"vim.normalModeKeyBindings": [
{
"before": ["f"],
"after": ["y", "i", "w"]
},
{
"before": ["f", "f"],
"after": ["v", "i", "w", "p"]
}
]