-3

<C-a> works ok for me, number is incremented. But <C-z> does not decrement. Instead gvim window is minimized to be background.

How can I disable that <C-z> behaviour and have it increment numbers?

I am using Gvim 7.4 on windows 7 64its and not using mswin.vim. I just source a copy of it with most stuff disabled, only minimal mappings. <C-z> does not exist in my custom mswin.vim.

closed as off-topic by Martin Tournoij Jun 29 '15 at 14:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers." – Martin Tournoij
If this question can be reworded to fit the rules in the help center, please edit the question.

  • damn I did not check the doc, I was sure it was C-z not sure why... – Persimmonium May 3 '15 at 12:50
  • 1
    Well, <C-z> does make more sense; a (the first letter) to increase, and z (the last letter) to decrease ... But <C-z> can't be used because it's already used to suspends programs in terminals. I suspect the x was chosen because it's next to the z (on qwerty layouts anyway). – Martin Tournoij May 3 '15 at 12:59
7

Decrement is <C-x>, not <C-z>.

From :help CTRL-Z:

CTRL-Z                  Suspend Vim, like ":stop".
                        Works in Normal and in Visual mode.  In Insert and
                        Command-line mode, the CTRL-Z is inserted as a normal
                        character.  In Visual mode Vim goes back to Normal
                        mode.
                        Note: if CTRL-Z undoes a change see mswin.vim.

So this works as expected ;-)

If you want to make <C-z> behave as <C-x>, you can use:

:nnoremap <C-z> <C-x>

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