Fenghe's Blog

Simple vim commands

Vim is a UNIX based editor, supported on Mac OS X and Linux distributions. Compared with nano, it is more powerful, yet which also means a lot more commands to memorize. Following is a simple cheat sheet for Vim.

Firstly, to open a file, take example.yml as example:

$ vi example.yml

To select some text

As you can imagine, it’s really difficult to select several lines without a GUI. And that’s what the v command in vim intended for.

With the text file open, you simply press the v

To (Cut || Copy) && Paste

(Still implementing)

Leave a Reply

Your email address will not be published. Required fields are marked *