Vi/VIM Cheatsheet

  1. Inserting date and time
  2. Moving a line up or down

Inserting date and time into a Vi/VIM document

You can type the following command to insert a date/time stamp into your document: :put =strftime('%c')

Source

Moving a line up/down

There are a number of ways to move a line up or down, but it seems the simplest way is to use ddkP, which breaks down like this:

Source