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

How to remapping this #161

Closed
Ryangithub10 opened this issue Jun 18, 2022 · 1 comment
Closed

How to remapping this #161

Ryangithub10 opened this issue Jun 18, 2022 · 1 comment

Comments

@Ryangithub10
Copy link

I was use this and i want remmap the key! I don't want to type gcc, i want to press <ctrl> / like other teks editor like vs code.
But i don't know how to remmap operator key. I hope you understand what i am saying beacuse my english still suck 😅

@k1ng440
Copy link

k1ng440 commented Jun 24, 2022

lua example:
vim.keymap.set("v", "<C-/>", "<Plug>Commentary", { noremap = true })

vim config

  xmap <C-/>  <Plug>Commentary
  nmap <C-/> <Plug>Commentary
  omap <C-/> <Plug>Commentary
  nmap <C-/>c <Plug>CommentaryLine
  nmap <C-/>u <Plug>Commentary<Plug>Commentary

Edit: map <C-/> to <Plug>CommentaryLine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants