I am very new to vim and I am using vs code vim extension. I have to frequently replace some words for that I use * command example is shown below
const FooBar = ()=>{
//some code
}
export default FooBar
If I want to change FooBar to say JhonDoe I go to FooBar in normal mode press * it takes me to next occourance of FooBar in the file I use ciw and change the word to JhonDoe and now I just have to press n to go to next occourance and . to change the word if I want to change the word. This is very convinient and gives me a lot of control.
However, I want to do the same thing but I want to change Foo to Pas how can I do that in a similar way. I want someting like I can highlight Foo in visual mode change the word and go to next occurance of Foo, not entire word and press . to change it
I want something similar to what vs code provides in ctrl + D shortcut but with better control