Best WordPress Hosting
 

Popular Vim Commands – Comprehensive Vim Cheat Sheet

via keycdn.com => original post link

Vim was made available in 1991 and is a free, open source software. Available both as a command line interface and as a standalone program with a GUI, Vim is a text editor that is a modal version of the vi editor created for Unix in the 1970s; Vim stands for vi improved. While it was designed with Unix in mind, versions of it are available for most operating systems and Vim is also available for Android and iOS smartphones.

While you may be familiar with the concept of a text editor, the modal part may throw you. A modal editor is one that allows you to edit text in different modes, and in the case of Vim, the mode determines what the alphanumeric keys on your keyboard do and how Vim editor commands work.

For example, in insert mode, your keyboard behaves normally, so what you type in is what you see, just like with a standard text editor. However, if you switch to command mode, the letters on your keyboard will allow you use Vim commands to move within the text. If you play video games that use the left-hand keys on the keyboard to move your character around, this concept is probably familiar to you.