如何获取vim以自动完成jQuery代码?
我正在使用vim编写我的jQuery代码.有没有可以用来自动完成部分代码的插件?
I'm using vim to write my jQuery code. Is there a plugin that I can use to autocomplete parts of the code?
修改
我找到了这个用于jQuery的代码段 javascript-jquery代码段
i found this Snippet for jquery javascript-jquery Snippet
JavaScript被支持为vim的全功能语言的一部分.在javascript缓冲区中工作时,您可以通过 Ctrl-x + Ctrl-o 激活此完成功能.有关更多信息,请键入:help new-omni-completion
在状态栏中.
Javascript is supported as part of vim's omni-completion languages. You can activate this completion via Ctrl-x + Ctrl-o when working inside a javascript buffer. For more info, type :help new-omni-completion
in the status bar.
我不知道专门处理jQuery的插件,但是有一些插件会在您键入时触发omni-completion,因此感觉很原生.希望这会有所帮助.
I don't know of a plugin that specifically handles jQuery, but there are a few that trigger omni-completion as you type so it feels fairly native. Hope this helps.