I'm trying to find out if there is a way to determine if certain mappings are shadowing other mappings. Does anybody know if and how this is possible?
Edit: I have a large .vimrc. I want to know if old mappings I created when I was a (vim)beginner are shadowing native vim mappings.
Thanks
您可能会发现:map
在这里很有用。
Edit: I have a large .vimrc. I want to know if old mappings I created when I was a (vim)beginner are shadowing native vim mappings.
the short answer, you cannot know.
One thing needs to be clarified, the " native vim mappings ". what does it mean? I guess you mean some built-in vim commands, like dd
, gg
, G
... they are not mappings.
take the dd
example, if you don't know dd
exists, you create a mapping with dd
to do something else, it's fine. and you cannot know if it will overwrite the built-in dd (delete the current line)
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.