kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

C-v triggers only after pressing it two times #122

Closed divramod closed 2 years ago

divramod commented 2 years ago

Ranger

Python

Pynvim

Ueberzug (optional)

RPC

Describe the bug

To Reproduce using nvim -u mini.vim

my Example: cat mini.vim

" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
let g:rnvimr_vanilla = 1
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <C-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()
let g:rnvimr_vanilla = 1

let g:rnvimr_action = {
\ '<Enter>': 'NvimEdit edit',
\ '<C-t>': 'NvimEdit tabedit',
\ '<C-x>': 'NvimEdit split',
\ '<C-v>': 'NvimEdit vsplit',
\ 'ev': 'NvimEdit vsplit',
\ 'eh': 'NvimEdit split',
\ 'et': 'NvimEdit tabedit',
\ 'ee': 'NvimEdit edit',
\ 'gw': 'JumpNvimCwd',
\ 'yw': 'EmitRangerCwd'
\ }

Expected behavior

kevinhwang91 commented 2 years ago

Q: In MacOS, I must press twice to split window vertically.

A: Please refer to https://github.com/kevinhwang91/rnvimr/issues/71 and use rnvimr_action variable to remap as a workaround for the issue.

divramod commented 2 years ago

i'm sorry. rtfm. https://github.com/kevinhwang91/rnvimr/issues/71#issuecomment-1072923677 fixed it for me thx for your fast reply and the awesome plugin!