NyaoVim icon indicating copy to clipboard operation
NyaoVim copied to clipboard

Pasting doesn't work if content contains vim commands

Open MikaAK opened this issue 7 years ago • 2 comments

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

  • OS: OSX (mac)
  • NyaoVim version: 0.0.20
  • nvim version: 0.1.5
  • Keyboard layout: qwerty

MikaAK avatar Aug 30 '16 21:08 MikaAK

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:

rhysd avatar Aug 31 '16 00:08 rhysd

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

MikaAK avatar Aug 31 '16 14:08 MikaAK