- normal mode
nnoremap <F4> "=strftime("%m/%d/%y")<CR>P
- insert mode
inoremap <F4> <C-R>=strftime("%m/%d/%y")<CR>
Other notes linking here:
View the edit history
Author's note: The note below is part of a digital garden. Therefore, it is likely incomplete, inaccurate or both. In other words, it's just like other information sources but perhaps to a higher degree. That said, it may still be worth exploring.
nnoremap <F4> "=strftime("%m/%d/%y")<CR>P
inoremap <F4> <C-R>=strftime("%m/%d/%y")<CR>