# increment numbers Ctrl+a+a Ctrl+x # if you highlight multiple rows you can increment the number with g ctrl+a+a g ctrl+x # When in visual mode and selecting lines use 'o' to switch between top and bottom # Use '%' to jump from open and closing of chars such as () {} and [] # you can also use '%' to select or delete everything in between those chars #try this keys on the follow text diw daw di" da" di[ da[ di] da] di{ da} di( da) ya{ viw vaw vi" va" vi[ va[ vi] va] vi{ va} vi( va) #vim will jump you to the next enclosing char if you are not currently in it and #and you can jump multiple chars like so v4a{ d2i{ y4a{ # also use 'c' to change the selection ({["Hello World"]}) ( { [ "Hello World" ] } ) #select entire word no matter where in the word you are viw viW # capital 'J' brings the next line up with spaces where newlines where # for no spaces just 'gJ' # 'w' vs 'W' - lower case jumps to the next word while capital 'W' jumps to the next white space # try it below Phone:(555)555-1234 for John # run a command on selection such as sort or jq :!sort :!jq . :!cut -d\, -f1,2 :!sort :!sort|uniq :!figlet # upper and lower case entire lines guu gUU # or highlight in visual and uu or UU # if you right the name of a file on a docuemnt you can open that file by pressing gf # reselecting text. select text in visual mode then press ESC do somethings and then press gv