Vim 脚本

ruby 脚本与 python 脚本接口类似,command buffer current cusor

Vim 脚本简介

如何编写Vim脚本

Vim 播放器

Vim 编译脚本

Vim 调试脚本

Vim 模板脚本

vimwiki ftp空间

vim ftp python

python mail

http://hi.baidu.com/flfxt/item/729f20c74c44d160f6c95d60

经过这两天的了解,我对 vim 理解更加深了一步,类型检测函数放在 vimfiles/ftdetect, 在 ftplugin 中建立相应文件类型的 .vim 文件(python.vim ruby.vim),既能够对不同的文件类型进行分别设置。

现在重点可以考虑 代码补全 的问题

for i in range(1,4)

echo "count is " i

endfor

s:name 局部变量 b:name 缓冲区局部变量 w:name 窗口局部变量 g:name 全局变量 也用于函数中 v:name vim 预定义的变量

$NAME 环境变量 &name 选项 @r 寄存器

let i = 1 unlet i

if !exists("s:call_count")

let s:call_count = 0

endif

a =~ b 匹配 a !~ b 不匹配