alancampora / vim-cheatsheet

My own examples to recall common shortcuts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-cheatsheet

My own examples to recall useful vim commands

Inner blocks

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
}

Movements

Between {} [] () "" and so on

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
    }
}

Last position , just press '

About

My own examples to recall common shortcuts