The *map command are recursive which can cause issues with plugins that map to the same keys.
Here is an example:
nmap x j # Your mapping
nnoremap j x # Plugin mapping
You want x to move the cursor down a line but the plugin maps j to delete one character.
Now when you press x to move down one line you end up deleting a character.
nnoremap x j # Your mapping
nnoremap j x # Plugin mapping
Now both mappings work.
It is much better to use nnoremap, inoremap, vnoremap to map your keys.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article Serhat.
The *map command are recursive which can cause issues with plugins that map to the same keys.
Here is an example:
You want
x
to move the cursor down a line but the plugin mapsj
to delete one character.Now when you press
x
to move down one line you end up deleting a character.Now both mappings work.
It is much better to use nnoremap, inoremap, vnoremap to map your keys.