VI / VIM: Insert Current Date / Time
In VI or VIM, you can insert the current date and time by using the following command: Press the Esc key to enter normal mode. Type : to enter command mode. Type r followed by the current date and time in the format you want to use. For example, to insert the current date and … Read more