:help map.txt
在vim中,你会找到所有解释如何执行此操作的内容。
你不能将“zencoding”插件和自动完成功能使用相同的快捷键;无论如何,你可以在你的.vimrc文件中添加以下内容:
imap <C-j> <C-y>
但我建议不要使用'C-j',因为在vim中,'j'总是与移动相关;相反,使用'leader'(:help leader
),它专门用于用户快捷键。
您可以按照@eolo999提供的答案操作,但我建议您阅读zencoding文档并将以下内容添加到vimrc文件中:
" Note the `nore'. You must use it where possible "
" in order not to get remapping problems when your vimrc grows up "
inoremap <C-j> <C-x><C-o>
" from :h zencoding-customize-keymappings "
let g:user_zen_expandabbr_key='<C-e>'