about the command 'map'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zy413952631
    New Member
    • Feb 2009
    • 7

    #1

    about the command 'map'

    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
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    You may want to check this documentation. I tested for a bit and found this command:
    Code:
    :map <F10> a<C-R>=strftime("%Y-%m-%d")<CR><Esc>
    Greetings,
    Nepomuk

    Comment

    Working...