1

I have the following code in my vimrc file:

" move line to end of file and add a timestamp
noremap ,d ddGp,t

" append a timestamp to the end of the line
nnoremap ,t A    <Esc>"=strftime("%H:%M")<CR>p

In the above code, ,t works when called by itself. However, when called by ,d the ,t command does nothing. The rest of the ,d command functions as expected. Why is this? How do I fix it?

user1376243
  • 307
  • 2
  • 7

1 Answers1

0

,d is marked as nore which turns recursive mappings off, and thus fails to recognize ,t as a command. Thank you FDinoff for the answer.

More info:
What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in vim?

Community
  • 1
  • 1
user1376243
  • 307
  • 2
  • 7