I'm trying to interchange i
and l
keys in vim. I've succeeded in all modes except for one issue. After pressing di
vim receives di
instead of dl
and thus, instead of deleting the character to the right vim waits for another key to be pressed to execute the corresponding shortcut. If another key is pressed then vim acts executing dl + key
since the remap is working. At the same time, if dl
is pressed vim also waits for a key to execute a shortcut and this time the shortcut is correctly executed since, again, the remap works correctly.
So my question is, why is does vim recieve di
after pressing pressing di
and executes dl
and receives di
too after pressing dl
but executes di
?
In the next picture I pressed di
and vim received di
but executes dl
after pressing another key.
In the next picture I pressed dl
and vim received di
and executed the key combination correctly.
The only difference is di
vs "+di
I can't interpret.
Remaps are the following:
" Movement Remapping
" Down
noremap n gj
" Up
noremap e gk
noremap E K
" Right
noremap i l
noremap I L
" Preserve Insertion
noremap l i
noremap L I
" Next Search Result
noremap k n
" Previous Search Result
noremap K N
" Forward end of word
noremap j e
noremap J E
" Enables writing in snippets selection
sunmap n
sunmap N
sunmap e
sunmap E
sunmap i
sunmap I
sunmap l
sunmap L
sunmap j
sunmap J