I mapped <C-X> to "*d and now I can't revert it back. I want it to subtract number by 1 like default, but I can't unmap it permanently, it's set to <C-X> in every new session. I'm sure .vimrc is not mapping it.

  • 1
    Try to remove your ~/.viminfo. It saves the last session-infos. That resets all session-stuff. But that is not the normal way to go! But it could help for now.
    – tron5
    Sep 16 '19 at 12:42
  • 2
    Use :verbose nmap {keys} to look up mappings where where they where last set, e.g. :verbose nmap "*d. For more help see :h :map-verbose Sep 16 '19 at 16:20

In general, :unmap <C-x> can get rid of he mapping (note the variants like :nunmap, etc.).

However, it is strange that the mapping persists without being in your .vimrc. You can use :verbose map <C-x> to see where the mapping is coming from.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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