Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use screen/tmux and vim.
In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux.

any suggestion for a simple map for increment a number ?

I try with

nnoremap <c-A> <c-a>

but, with this I have push down two times <c-A>


and with <c-X> never decrement the number

share|improve this question

With screen, i've no problem. For doing a Control-a you have to do : C-a a

$ screen
$ vim foobar

type 'i' for insertion mode
type '1' 
type 'ESC'
type C-a a

=> 1 becomes 2

Hope this helps.

share|improve this answer
Also dot . can repeat this so there's no need to do the same awkward escaping over and over. – Cyprian Guerra Sep 14 '15 at 12:18

This question will probably help out. To repeat my answer from there, I prefer C-] as the tmux / screen key, because it doesn't get in the way of normal bindings in either vim or emacs.

share|improve this answer
C-] is used by vim to jump to the definition of a keyword. – Evan Teitelman Mar 2 '13 at 14:51
Yes C-] is too much important (ctags), therefor I use C-x for tmux / screen key. I know it does decrement in vim, I don't use that too often in vim in screen. – pevik Feb 28 '14 at 18:21
C-x actually used for all autocomplete functions (e.g. C-xC-o = omnicomplete). – Cyprian Guerra Sep 14 '15 at 12:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.