Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
When in screen, just do "C-a a" instead of just "C-a"
ie Hit "Control-a" then type "a" again. The number under the cursor will increment!
From
man screen
:Found a possible solution:
map something unrelated in Vim to like so:
map <Leader>inc<CR> <C-a>
This is not a perfect solution, or maybe not even the "right" solution, but it works for now.
My problem was just symetrical to yours: I wanted to keep working the usual way with screen, using the usual Control-A, and also use the increment in vim.
I just added these two lines to my .vimrc file:
, so that I now use Alt-A and Alt-X in vim to increase and dicrease numbers.