如何获取vim以自动完成jQuery代码? [英] How do I get vim to autocomplete my jQuery code?

查看:112
本文介绍了如何获取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.

这篇关于如何获取vim以自动完成jQuery代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆