1

For more than a year, I have unmap <C-X> in my .vimrc because I can't figure out where this mapping comes from.

I used verbose map <C-X> as suggested in another topic, it returns

v <C-X> "*d

and I don't know what that means. There is nothing that maps <C-X> to anything in my .vimrc, yet that unmap command doesn't even give an error, which means it's mapped somehow.

7
  • 2
    It very well could be in some startup file in VIMRUNTIME, but I’d expect to have the file shown with verbose. I have the same problem with <BS> in visual mode mapped to "-d
    – D. Ben Knoble
    Mar 18, 2020 at 15:24
  • Does :20verbose map <C-x> help? Otherwise try starting Vim as vim -V20log and searching the log file for <c-x>. Mar 20, 2020 at 9:38
  • @MartinTournoij :20verbose map <C-X> result is same as verbose map <C-X> in this case. Second method you suggested just opened an empty file. I should also note that my vim acts in same way on my secondary computer too(which uses same .vimrc). Mar 20, 2020 at 19:50
  • Maybe -V[N]{fileame} doesn't work for older versions? See :help starting.txt. Otherwise you can always use: vi.stackexchange.com/q/2003/51 Mar 24, 2020 at 7:31
  • @MartinTournoij I opened vim in debug mode, ignoring .vimrc and it was fine, not sure what's the problem but I'll go through my .vimrc, see what activates that mapping. Thank you very much! Mar 25, 2020 at 16:07

1 Answer 1

0

These are actually the dos standard mapping. They are defined in the source code of Vim (src/map.c).

More information with :help dos-standard-mappings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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