I want to be able to insert the results of -
date +"%y-%m-%d %H:%M:00"
at the cursor in vim. How would you run the above command in BASH but get the results and insert them directly at the cursor?
Right now I am running the command as -
:r!date +"\%y-\%m-\%d \%H:\%M:\%S"
But this inserts the contents on a new line. What is the correct method to evaluate a bash script AT the cursor?
Current Issue - Date: 15-07-02 14:36:24 Expected Result - Date: 15-07-02 14:36:24