vim默认是可以支持javascript源代码的语法高亮,vim的Taglist插件也可以对javascript代码进行关键信息提取,但实际用于开发时总觉得不够给力。具体表现在哪些方面呢?
- vim无法对OOP风格的函数定义进行语法高亮
- vim默认不识别.jsm为Javascript
- Tag[......]
vim默认是可以支持javascript源代码的语法高亮,vim的Taglist插件也可以对javascript代码进行关键信息提取,但实际用于开发时总觉得不够给力。具体表现在哪些方面呢?
ctags, firefox, firefox扩展开发, Javascript, Linux, programming, Vim
This entry was posted on 2010年11月30日, 7:28 下午 and is filed under CodeSnippet, Firefox, Javascript, Linux, Vim. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
一直没有找到一个好用的xul代码阅读工具,无奈,还是拾起我的vim。捣腾了一下,基本的函数定义跳转、调用查找、关键词跳转、引用查找都没有问题了。
1. vim的xul语法着色
下载并安装vim的语法定义文件:http://www.vim.org/scripts/script.php?sc[......]
cscope, firefox, firefox扩展开发, Linux, Vim
This entry was posted on 2010年06月29日, 4:23 下午 and is filed under Javascript, Linux, Vim. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
一、中文帮助手册页
Vim7.2中文手册页下载:官方地址 我的Dropbox存档
内有详细的使用帮助和说明,默认vim会自动根据系统的当前locale选择显示语言。
如果要强制使用英文手册页,可以:set helplang=en,或切换中文手册页:set helplang=cn
二、启用拼写检查
:set spell或者:setlocal spell spelllang=en_us
它打开 ‘spell’ 选项并指定检查美国英语。
注意:Vim只检查单词的拼写,不做语法检查。
[......]
This entry was posted on 2009年12月26日, 3:16 下午 and is filed under Linux, Vim. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
工具链
手册页
dev, ide, Linux, programming, Ubuntu
This entry was posted on 2009年06月7日, 7:21 下午 and is filed under Linux, Vim. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
vim有一个非常好的特性——关键字自动完成功能,这个功能对于coder来说是非常贴心的。因为我们经常会因为一个笔误,敲错了一个字母或者漏打了一个 字母而导致程序出错。对于C语言这样的编译型语言来说,一般只能等到代码编译时才能发现错误。还好,有了vim,生活原来可以如此的美好。哈!
用Perl写[......]
This entry was posted on 2008年08月25日, 8:09 上午 and is filed under Perl, Tools, Vim. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
今天写个perl的小程序的时候猛然发现自己以前设置的vim的环境还是很好用的,尽管还有点小bug,不过基本的运行和调试时没有问题了
贴出来,自己备份一下,也共享一下~~
” An example for a vimrc file.
”
” Maintainer: Bram Moolenaar &l[......]
This entry was posted on 2007年12月13日, 9:54 下午 and is filed under CodeSnippet, Vim. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
按下v进入可视模式,然后用方向键控制选择待添加注释的文本部分,选择完毕后按下“:”键。
此时vim的命令行提示符变为:’<,’>
顺次输入
s/^/#/
输入完毕后此时的vim命令行应该是
:’<,’>s/^/#/
好了,回车吧,大功告成,所有的刚才选中的文本[......]
This entry was posted on 2007年09月11日, 11:26 下午 and is filed under Vim. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
最近突然对纯文本编辑比较感兴趣,Google了一下,没有发现什么好的Win下可用的纯文本编辑器支持直接的表格编辑
于是想到了Vim
下面的就是用Vim编辑的一个示范例子
=============================================================[......]
This entry was posted on 2007年04月10日, 12:07 上午 and is filed under Vim. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
” An example for a vimrc file.
”
” Maintainer: Bram Moolenaar <Bram@vim.org>
” Last change: 2002 May 28
”
” To use it, copy it to
” for Unix[......]
This entry was posted on 2006年12月28日, 6:22 下午 and is filed under CodeSnippet, Vim. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
一个典型的Vim字典文件就是每行一个单词,如下所示:
abstract
boolean
break
byte
case
catch
编辑_vimrc,在文件中加入字典文件位置的设定:
” set root directory of DICTIONARY, whose value by d[......]
This entry was posted on 2006年12月28日, 2:11 下午 and is filed under Vim. You can follow any responses to this entry through RSS 2.0. You can skip to the end and leave a response. Pinging is currently not allowed.
You are currently browsing the archives for the Vim category.
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
|---|---|---|---|---|---|---|
| « 十 | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
最近评论