rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Pasting doesn't work if content contains vim commands #79

Closed MikaAK closed 1 year ago

MikaAK commented 8 years ago

inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" and CMD + v causes inoremap pumvisible() ? "\" : "\ ""

Expected Behavior

should paste in without running

Actual Behavior

uses codes as actual codes

Steps to Reproduce (including precondition)

Use OS paste (cmd + v) or (ctrl + v) with inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"

Screenshot on This Problem (if possible)

nyavim

Your Environment

rhysd commented 8 years ago

Cmd + v is sent to Neovim as <D-v> by default because Neovim can handle Cmd key. You can use Cmd key for menu access from NyaoVim 0.0.21. I'll ping you after releasing 0.0.21 here :smile:

MikaAK commented 8 years ago

Awesome thanks! When you mean menu access does that mean it's not forwarding it to neovim properly? I was having some issues getting my command key bindings to work as well though they worked with the alt key instead, I'm coming right out MacVim 😜 it could of been a config issue on my end though