vimdesktop icon indicating copy to clipboard operation
vimdesktop copied to clipboard

新增映射组合快捷键功能

Open wideweide opened this issue 10 years ago • 1 comments

好多功能其实是通过一组快捷键来实现的。通过在配置文件来映射快捷键组,可以不编写代码即可自由定义一些功能

如此即可在TC中实现类似粘贴并转到的功能 配置文件建议优化,现在这种方式写起来不太爽啊

<ctrl>p=<key>[=normal]<alt>d<ctrl>v<enter>

wideweide avatar Mar 14 '14 07:03 wideweide

可以考虑自己在Plugins目录下新建一个插件,用于定义自己的功能,这样也更灵活些,如:

<MyFunc>:
    Send !d^v{enter}
return

然后配置文件里写:

<ctrl>p=<MyFunc>[=normal]

goreliu avatar Feb 22 '16 06:02 goreliu