nnoremap <leader>td $F)i, args2<ESC>
# base string test ----> (args1) # expected string after <leader>td test ----> (args1, args2) # real result string test ----> (args1)
The above are the
key-map and what I expect with the
key-map. However, the result is that the cursor is stopped the end of the string not entering
insert mode. When I simulate the
key-map, typing keys in the
<leader>td by hand, it works.
In addition, The more wired thing is the below. After appending a character at the end of the string, It works as expected.
# base string, I append ':' character at the end of the string test ----> (args1): # real result string, it works !!!? test ----> (args1, args2):
What have I missed?