creating sticky key mappings in vim

我与影子孤独终老i 提交于 2019-12-07 09:38:03

问题


I have this in my vimrc file

nnoremap <leader>k <C-u>

I want to be able to continue to hold down the leader key, and just tap 'k' to scroll the screen as I like. But, at the moment, I have to release both keys first, and then press them again to get the desired action.

How do I implement it, so that I don't have to keep releasing the leader key to get the functionality to work?

Cheers.


回答1:


TinyMode is a plugin that pretty much achieves what you're looking for. You could set it up so that you press <leader>k and then just tap k.



来源:https://stackoverflow.com/questions/7267629/creating-sticky-key-mappings-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!