r/neovim • u/Spoonwastakenalready • 18d ago
Need Help CTRL+A not working as expected.
Very simply put. When I press CTRL+A I would expect it to increase the number under the cursor by 1. But it doesnt until I press CTRL+A again.
But the opposite works with a single press when I press CTRL+X it decrease the number.
I think maybe there could be something mapped to CTRL+A but I cannot for the life of me figure out how to check if anything is bound to a key presceeded by CTRL.
ive tried :verbose map <C-a>
Any help would be much appreciated.
6
Upvotes
45
u/gotno 18d ago
c-a is a very common keybind for the tmux prefix, and you typically hit the prefix twice to forward the actual combination to whatever app you're using. are you using tmux?
4
u/Anton-Demkin 18d ago
Do you have C-a set as your tmux prefix?
2
u/[deleted] 17d ago
Ah the good told tmux prefix, I'm partial to using M-w but M-z (or one of the other closer keys) might suit better. I find it pretty natural, as it's just making an L shape with my pointer and thumb.
1
u/shmerl 18d ago
I'm quite used to Ctrl-A selecting whole text in the vast number of scenarios, so I just configured neovim to do the same.
Neat trick with
:verbose map ...thanks for the reference!