Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
divramod opened this issue Aug 9, 2022 · 2 comments
Closed

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

divramod opened this issue Aug 9, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@divramod
Copy link

divramod commented Aug 9, 2022

  • nvim --version: 0.7.2
  • Operating system/version: macos Darwin mod 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
  • nvim +'checkhealth rnvimr':
rnvimr: health#rnvimr#check
========================================================================
## OS
  - OK: Name: Mac

## Ranger
  - OK: Version: ranger 1.9.3

## Python
  - OK: Version: 3.9.13 (main, May 24 2022, 21:13:51) [Clang 13.1.6 (clang-1316.0.21.2)]

## Pynvim
  - OK: Version: 0.4.3

## Ueberzug (optional)
  - INFO: Ueberzug is not support for Mac

## RPC
  - OK: RPC echo: Neovim send "Give me five!" and receive "Give me five!"

Describe the bug

  • i mapped C-v to NvimEdit vsplit (see my example)
  • i need to press c-v two times to take effect
  • running shortcut ev opens the vsplit at the first try (see my example)
  • i tried it with vanilla and with my own ranger config
  • i tried it in iterm2 and in the default osx editor
  • i tried it with zsh, bash and zsh

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

  • NvimEdit vsplit will be triggered at the first time when pressing C-v
@kevinhwang91
Copy link
Owner

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

A: Please refer to #71 and use rnvimr_action variable to remap as a workaround for the issue.

@kevinhwang91 kevinhwang91 added the duplicate This issue or pull request already exists label Aug 9, 2022
@divramod
Copy link
Author

divramod commented Aug 9, 2022

i'm sorry. rtfm. #71 (comment) fixed it for me
thx for your fast reply and the awesome plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants