Vim Command Cheat Sheet

Posted by yg on November 14, 2020

Commonly Used Vim Command

|----------------------|--------------------------------------------------------|
|  Operation           |   Command                                              |
|----------------------|--------------------------------------------------------|
|  Undo                | u                                                      |
|----------------------|--------------------------------------------------------|
|  Copy Multiple Lines | 1.v to visual mode                                     |
|                      | 2.move to the bottom of content needed to be copied    |
|                      | 3.yy - for copy                                        |
|                      | 4.p  - for paste                                       |
|----------------------|--------------------------------------------------------|
|  To top of the line  | 0                                                      |
|----------------------|--------------------------------------------------------|