Vim/zh-cn

Vim (Vi improved) is Article description::a text editor based on the text editor. It can be used from the command-line or as a standalone application with a graphical user interface.

Emerge
如果不需要X Window System支持，请安装:

附加软件

Gvim
若要同时安装ncurses-based接口和图形界面(for the X Window System - ),请安装包:

Vim-qt
还有一个被称为的实验性Qt接口也可以安装.

插件
“app-vim”类别提供了大量额外的语法定义，插件和其他Vim相关的东西.

使用或 来获取“app-vim”类中可用包的概览：

文件
vim 可以根据每个用户或通过整个系统配置文件进行配置：


 * - 整个系统（全局）设置文件.
 * - 用户特定的 (本地) 配置文件. 符号(~) 表示它在用户的主目录.

开始
Vim has a built-in tutorial which should require around 30 minutes to go through. Start it using the command:

Color schemes
About a dozen color schemes are shipped with the base Vim package. They can be listed in last line mode by typing colorscheme, then pressing either + or pressing the key twice:

They can be changed in Vim by using the (alternatively use ) command while in last line mode:

Color schemes can be permanently applied in the file:

The first line sets the default color scheme while the last line activates the color scheme.

像ex或ed一样从命令行使用Vim
It is possible to use Vim for one-liners — commands that can be used in scripts or on the command-line to make changes in an unattended manner.

例如, 下面的命令将  添加到文件中每行的开头:

Vim会解释传递的命令 (通过  参数).第一个命令是Vim的替换命令(与非常相似)，第二个命令是Vim的保存和退出编辑器的指令.

改变文件编码
To change the file encoding of a file to UTF-8, use the following command (in last line mode):

如前面的技巧所示, 也可以从命令行执行此操作:

参考

 * Vim Guide -说明如何更详细地使用 vim.

外部资源

 * Vim Documentation 包括Manuals (aka ":help" and Free VIM OPL Book), FAQS, HOWTO's, 教程, 有PDF页面,和PS格式.
 * A vim Tutorial and Primer - 一个优秀的vim教程/入门书. 首先阅读它.
 * VIM Scripts/Plugins
 * Vim for Humans (免费电子书) - 复制并且进入sources目录，, 在 change   to   for SPHINXBUILD .  运行. 在阅读PDF.
 * Learning the vi and Vim Editors, 7th Edition O'Reilly  出版物 ISBN: 978-0-596-52983-3,，电子书 ISBN: 978-0-596-15935-1
 * Vim anti-patterns - Vim维护的博客条目.