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

Feature suggestion: Replace visual mode with select mode #19

Open
Lassebq opened this issue Apr 26, 2023 · 3 comments
Open

Feature suggestion: Replace visual mode with select mode #19

Lassebq opened this issue Apr 26, 2023 · 3 comments

Comments

@Lassebq
Copy link

Lassebq commented Apr 26, 2023

As of now the cursor in visual mode is a block and the bindings from Insert mode don't apply in it. (Such as <C-c> to copy <C-v> to paste and etc)
Might as well mention to add a <C-BS> binding to delete a word

@tombh
Copy link
Owner

tombh commented Apr 28, 2023

That's a good point, there's no harm in adding keybindings for copy and paste in Visual mode. How do you get into Visual mode? I think the only easy is to click with the mouse?

I really like <C-BS> to delete a word, I notice that I don't have it setup, I think that must have been because TTY or Vim, I don't remember exactly, doesn't conventionally detect that combination?

@Lassebq
Copy link
Author

Lassebq commented May 15, 2023

Update: apparently vim should already have a bind to delete word by default and it's either <C-BS> or <C-w>
But seemingly because <C-w> is bound to close buffer in novim mode, <C-BS> also got remapped to that.

@tombh
Copy link
Owner

tombh commented May 15, 2023

I'd love <C-BS> to work, I just don't remember why it doesn't. It could be BASH, ZSH, nvim, tmux or Alacritty. That particular key combination is tricky.

And regarding <C-W>, my philosophy for this plugin is that all conventional key bindings from other well-know applications, should work as expected. And <C-W> is pretty widely known to close tab-like things, hence why it closes buffers here.

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

2 participants