Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Linux only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Linux
about the command 'map'
about the command 'map'
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
zy413952631
New Member
Join Date:
Feb 2009
Posts:
7
#1
about the command 'map'
Feb 18 '09, 02:31 AM
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
Join Date:
Aug 2007
Posts:
3111
#2
Feb 18 '09, 10:40 PM
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
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment