Vim commands we all need to remember

You are here

The more web development I do the more I use Vim and Vim buffers. Wow, once you get your head around not using the mouse and the editing keys which are more than "i" it really does speed you up. Below are some of the keys that I need to remember.

 

This closes the current buffer that you are in.

 :bd

This moves to the next buffer.

 :bn

This to goes back to last buffer.

 :bp

Lists all the hidden buffers.

 :ls

Deletes the character that the cursor is on.

x //in visual mode

Vim insert commands

i to insert CRTL p will search down the document for terms you want to use

CTRL P

i to insert CRTL n will search up the document for terms you want to use

CTRL N

Searching for exact string

/\< mystring \>