加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

使用VIM,同时使用snipMate和pydiction(共享密钥?)

发布时间:2020-12-15 19:08:07 所属栏目:安全 来源:网络整理
导读:我试图在vim中使用 snipMate和 pydiction – 但是,都使用 tab执行自己的天才 – 自动完成 – 片段渲染 – 善良的关键 – 就是我所希望的。 当安装pydiction时,snipMate停止工作。我认为它是因为它们不能同时拥有 tab键。我如何让他们一起工作? 我不介意将
我试图在vim中使用 snipMate和 pydiction – 但是,都使用< tab>执行自己的天才 – 自动完成 – 片段渲染 – 善良的关键 – 就是我所希望的。

当安装pydiction时,snipMate停止工作。我认为它是因为它们不能同时拥有< tab>键。我如何让他们一起工作?

我不介意将他们中的一个映射到另一个键,但我不太确定如何做到这一点(可能pydiction到< ctrl-n>键,所以它模仿vim的自动完成?)。

这里是相关的.vimrc:

filetype indent plugin on 

autocmd FileType python set ft=python.django 
autocmd FileType html set ft=html.django_template 

let g:pydiction_location = '~/.vim/ftplugin/pydiction-1.2/complete-dict'
那么这是从Snipmate帮助文件:)
*snipMate-remap*
snipMate does not come with a setting to customize the trigger key,but you
can remap it easily in the two lines it's defined in the 'after' directory
under 'plugin/snipMate.vim'. For instance,to change the trigger key
to CTRL-J,just change this: >

 ino <tab> <c-r>=TriggerSnippet()<cr>
 snor <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>

to this: >
 ino <c-j> <c-r>=TriggerSnippet()<cr>
 snor <c-j> <esc>i<right><c-r>=TriggerSnippet()<cr>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读