Vim - How to make your own mapping repeatable? Part 2

Viewed 167

This post had exactly what I wanted: Vim - How to make your own mapping repeatable?

Although the mapping in that post works, it seems to always left align my cursor to the zeroth column. I would like for it to just leave my cursor where it was.

Here's the mapping (it's supposed to just perform a normal df( but also delete the corresponding parenthesis):

nnoremap <silent> <Plug>Map_df( dt(me%x`ex=:silent! call repeat#set("\<Plug>Map_df(", v:count)<CR>
nmap df( <Plug>Map_df(`e

Please let me know if the behavior isn't recreatable.

1 Answers
Related