My own examples to recall useful vim commands
Replace content between brackets: move cursor to content and then press ci{
or ci}
(saying to vim: "change inner content of curly brackets")
function(){
console.log();
}
press: ci{
function(){
>>cursor here to insert new content
}
A great way to know the closing bracket of an openinig one it's to use the %
Move to the opening/closing brackent and press %
function(){
function superFunctio`(){
making lot of stuff
making lot of stuff
making lot of stuff
making lot of stuff
}
}