onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.83k stars 281 forks source link

Paste register per keybinding inside command line mode #3789

Open anschnapp opened 3 years ago

anschnapp commented 3 years ago

I tried out an easy keybinding for opening links under my cursor (open command should work like this in mac environment):

nnoremap gx yiW:!open <c-r>0 (normally with an <CR> at the end but here I left it away for debug purpose)

If i type in the keys sequence manually it work yiW:!open <c-r>0

But if i use the binding, it seems like the paste don't work correctly I got just a strange character with a following 0

vim-command-lline-with-strange-character