jdhao's digital space
Recent content on jdhao's digital space
马上订阅 jdhao's digital space RSS 更新: https://jdhao.github.io/index.xml
Create Mappings That Take A Count in Neovim
2019年4月29日 23:08
Many normal mode commands accept a count, which means to repeat the motion
count times. For example, 3j moves the cursor 3 lines below the current
line and 4w will move the cursor four words forward. Usually, the
user-defined mappings can not take a count. Even if they can, they will most
probably not work the way you expect them to. In this post, I will describe
what I have learned to make a fairly complex mapping repeatable with a count.