Add an autocmd event 'DotCommandPre'
If you are not using any other plugin defining key mapping to .
key, add the line into your vimrc to use <Plug>(event-DotCommandPre+Dot)
:
nmap . <Plug>(event-DotCommandPre+Dot)
If you are using another plugin defining a key mapping to .
, for example <Plug>(CustomDot)
, then map <Plug>(event-DotCommandPre)
before the key mapping:
nmap . <Plug>(event-DotCommandPre)<Plug>(CustomDot)
If you are using repeat.vim, <Plug>(RepeatDot)
definition is delayed. Thus, in order to ensure the mapping exists, add the lines:
runtime autoload/repeat.vim
nmap . <Plug>(event-DotCommandPre)<Plug>(RepeatDot)
Vim 8.0 or higher
NYSL license