DEV Community

Discussion on: 7 Vim Tips That Changed My Life (With Demo)

Collapse
 
voyeg3r profile image
Sérgio Araújo • Edited

To swich to the last file just hit Ctrl-6 (it alternates the last two buffers) because the last jump Ctrl-o could be on the same file, and you can open the last file in another window, just hit Ctrl-w Ctrl-6. About indentation "insert mode" use Ctrl-d to add more indentation and Ctrl-t decreases it. Ctrl-u clears the line (also insert), including lines that have any annoying comments at the beginning. gi start insert at the last inserted text. gv active last visual selection.