I have the following mappings in my
" Add new lines and spaces without changing the mode nmap <leader>j mvo<Esc>`v nmap <leader>k mvO<Esc>`v nmap <leader>h i<space><esc>l nmap <leader>l a<space><esc>h
All shortcuts work, but I can't get consistent behavior with leader+h/l commands.
For example, here is the word and cursor is at h:
When we press leader+l, one space gets instantly added to the right and cursor stays at h:
Pressing u moves cursor one position to the right, which is unexpected.
Next, when we press leader+h, space gets added to the left with approximately 3 seconds delay:
However, this time pressing u leaves cursor at h as expected.