Connecting Tech Pros Worldwide Forums | Help | Site Map

about the command 'map'

Newbie
 
Join Date: Feb 2009
Posts: 8
#1: Feb 18 '09
how to use the vim "map" command to map the key F10 to insert
current date and time in the following format
YYYY-MM-DD

Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Feb 18 '09

re: about the command 'map'


You may want to check this documentation. I tested for a bit and found this command:
Expand|Select|Wrap|Line Numbers
  1. :map <F10> a<C-R>=strftime("%Y-%m-%d")<CR><Esc>
Greetings,
Nepomuk
Reply