I have the following lines in my .vimrc for Ubuntu. They insert the current date as a string, and insert my signature at the bottom of the currently open file, respectively:
:map <F2> "=strftime("%B %d, %Y")<CR>Pli<Return><Esc>"
:map <F3> :e ~/.sign.txt<CR>ggV/^$<CR>k"*xG$a<C-R><C-O>*<Esc>:w<CR>:bd<CR>G$a<C-M><Esc>"*P
They're not working on my Macbook, though. The F2 command results in inserting "Q\n", and the F3 command results in inserting "R\n". How can I update these mappings to work on my Mac?