Is there a way to find out that my new mapping won’t collide with some keyboard shortcut already set in vim? For example I will want to map gg to something because I don’t know that vim uses it to go to the beginning of the file. How to get know that this mapping is already used for another purpose?
thank you
I tend to run
:help ggor:help _or:help ctrl-yto see if the mapping I’m thinking of over-writing is useful to me or not.The
^Dcompletion command can be helpful, try this:That’s typing
ctrlwith four letters, then hitting Control+D to get completion list. It shows help topics matchingctrl.Typically,
\or,or_characters are used as ‘leader’ characters, and you place all your mappings behind it. Not as convenient, but when everything is already taken…