scy on Nostr: Hey #Vim and #Neovim bubble, I have this mapping which _almost_ works, but not quite: ...
Hey #Vim and #Neovim bubble, I have this mapping which _almost_ works, but not quite:
noremap! <silent> <C-R><Leader>d <C-R>=strftime('%Y-%m-%d')<CR>
With my <Leader> being <Space>, hitting <C-R><Space>d in insert mode correctly inserts 2024-06-07, but in command-line mode apparently nothing happens until I press another key. For example, if I press an additional x afterwards, the command line will now contain 2024-06-07x.
Any idea why this is and how I could fix it?
noremap! <silent> <C-R><Leader>d <C-R>=strftime('%Y-%m-%d')<CR>
With my <Leader> being <Space>, hitting <C-R><Space>d in insert mode correctly inserts 2024-06-07, but in command-line mode apparently nothing happens until I press another key. For example, if I press an additional x afterwards, the command line will now contain 2024-06-07x.
Any idea why this is and how I could fix it?