Compiling sources from within vim.
从Vim内编译源代码。
You'll be using Vim version 7.2 and Perl version 5.8.
我们将使用Vimversion 7.2和Perl version 5.8。
You embed Perl code inside Vim script using markers.
使用标志把Perl代码嵌入在vim脚本中。
Figure 4 shows the Fibonacci trace highlighted in vim.
图4显示了vim中加亮的Fibonacci跟踪。
Vim::Msg displays the message inside the editor window.
Msg在编辑器窗口内显示消息。
Using external scripting languages to create a Vim plug-in.
使用外部脚本语言创建Vim插件。
The article ends by showing how to compile sources from inside Vim.
最后,讲解如何从Vim内编译源代码。
Vimscript is a mechanism for reshaping and extending the Vim editor.
Vimscript是一种用来重组和扩展Vim编辑器的机制。
Vim makes it possible to compile sources from inside the editor.
可以从Vim 编辑器内部编译源代码。
The command is any valid Vim command, including calls to Vimscript functions.
该命令可以是任何有效的Vim命令,包括Vimscript函数的调用。
Vim consults this variable prior to displaying the "swapfile exists" message.
vim会提前查询这个变量,显示“swapfile exists”消息。
You define a function in Vim that passes to the Perl code the file sources.
在Vim中编写一个函数,它把文件源代码传递给Perl代码。
Additionally, consider the low CPU and disk usage associated with the Eterm/vim usage.
此外,考虑与Eterm/vim使用情况关联的低CPU及磁盘使用率。
Vim provides a useful interface to Perl, the details of which are available in Resources.
Vim提供了连接Perl 的接口,可以在 参考资料中找到详细信息。
You can see the complete list of these special symbols by typing :help keycodes within Vim.
通过在Vim内输入 :help keycodes,可以看到这些特殊符号的完整列表。
Listing 9 provides a cool five lines to add to your Vim script for compiling inside the editor.
在vim脚本中添加清单9所示的五行代码,就可以在编辑器中执行编译。
The build function calls make from inside Vim, and then invokes cl, which displays the errors.
build函数从Vim内部调用make,然后调用cl以显示错误。
I'll assume that you already have access to Vim and are familiar with its interactive features.
我将假设您已经接触过Vim并且熟悉它的交互式特性。
As Vim scripts like these become more complex, however, you also will need better tools to manage them.
然而,随着这些类似的vim脚本变得更复杂,您还需要更好的工具来管理它们。
Vim associates some word to be a keyword using the format: syntax keyword <group name> <keyword list>
Vim使用以下格式把特定的单词标识为关键字:syntaxkeyword <groupname>
Start at the Vim distributions downloads page to upgrade to the latest version of Vim for your platform.
从Vim发行版下载页面为您的平台下载最新版本的Vim。
Note: This article assumes that you have basic familiarity with Vim, Perl, make, and regular expressions.
注意:本文假设读者基本了解Vim、Perl、make和正则表达式。
Joel: My development environment is pretty minimal. I use vim (with lots of extensions) on Linux to edit code.
Joel:我的开发环境非常精简,使用vim(加上很多扩展)在Linux上编写代码。
Vim even has its own scripting language that you can use to code your scripts and then load them into Vim.
Vim甚至有自己的脚本语言,可以使用它编写脚本并把脚本装载到Vim中。
On modern Linux distributions, simply copy xt.vim to $VIMRUNTIME/syntax/xt.vim, then run vim tracefile.xt.
对于最近的Linux发行版,只需将xt.vim复制到 $VIMRUNTIME/syntax/xt.vim 中,然后运行 vimtracefile.xt。
There are also pseudovariables that scripts can use to access the other types of value containers that Vim provides.
还有一些伪变量(pseudovariables),脚本可以使用它们访问Vim提供的其他类型的值容器。
With no options, txt2regex defaults to build regexps for the perl, PHP, postgres, python, sed, and vim applications.
在没有选项的情况下,txt2regex会缺省为perl、php、postgres、python、sed和vim应用程序构建regexp。
That's it: Now, whenever you open a file with the extension ml2 in vim, the syntax is automatically highlighted.
这样就可以了:现在,每当在 Vim 中打开扩展名为ml2的文件时,会自动地高亮显示语法。
Since we exceeded 80 characters thanks to the complex formula, in Figure 5, Vim highlights the whole line in red.
在图5中,由于复杂的公式导致超过80个字符,所以Vim用红色高亮显示一整行。
Since we exceeded 80 characters thanks to the complex formula, in Figure 5, Vim highlights the whole line in red.
在图5中,由于复杂的公式导致超过80个字符,所以Vim用红色高亮显示一整行。
应用推荐