top | item 33817569

(no title)

koningrobot | 3 years ago

I notice it mentions Ctrl-a and Ctrl-x which "increment or decrement any number after the cursor on the same line". I hate these shortcuts because several times I've accidentally pressed them (e.g. on some level thinking I'm in Spacemacs or in readline) and introduced a hard-to-find bug into my code without knowing it.

discuss

order

quesera|3 years ago

Agreed. I love vi, but this is almost always an anti-feature.

To disable, add these lines to .vimrc:

  map <C-a> <Nop>
  map <C-x> <Nop>

srik|3 years ago

Shows how crucial customizability is because I don't think I can work without being being able to rely on <c-a/x>, and more importantly g<c-a/x>.

civopsec|3 years ago

Won’t you spot that through you source control?

jcul|3 years ago

They can be quite useful, but I just stopped using them due to muscle memory of Ctrl-a for screen / tmux.