-------------------------------------------------------------------------
BufExplorerTaglistlatex-suiteword_completeSketch
DrawItMarkSearchCompletevcscommandswitchtags
ccal.rbvikiNERD_treefencviewmatrix
taglisTetrisBlockComment
-------------------------------------------------------------------------
(1)[插件的名称]
BufExplorer
(2)[插件的功能]
方便切换buffer,切换buffer后列表自动关闭。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=42
(4)[备注或特别提醒]
装完后Normalmode下输入/be即可打开这个列表,
光标放在某一个文件上按回车可以打开这个文件。
(5)[推荐人id]
Dieken
---------------------------------------------------------------------------
(1)[插件的名称]
Taglist
(2)[插件的功能]
实现类或者函数列表功能,支持C/C++,Java,Perl,Python,
TCL,SQL,PHP等语言,它可以在VIM中创建一个窗口,列出编辑
的源文件中的类、函数、变量定义列表,而且更方便的是这个列表
也插入在了右键菜单中,分类存放,访问非常方便。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=273
(4)[备注或特别提醒]
依赖于ExuberantCtags,可以在http://ctags.sourceforge.net下载。
(5)[推荐人id]
Dieken
------------------------------------------------------------------------------
(1)[插件的名称]
word_complete
(2)[插件的功能]
Insert模式下在输入的时候自动补全单词,如果补全正确
可以按Tab键接受,否则可以不管它继续输入或者按Ctrl-n,
Ctrl-p切换补全。注意是输入三个字符后才开始补全。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=73
(4)[备注或特别提醒]
在工具菜单中选择Wordcompletion开启这个功能。
(5)[推荐人id]
Dieken
------------------------------------------------------------------------------
(1)[插件的名称]
Sketch
(2)[插件的功能]
在VIM里头画ASCII图,支持填充,剪切,拷贝等,非常有创意。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=705
(4)[备注或特别提醒]
Drawwithmouse:boxes,arrows,lines,fills.
Transparent/opaquedraganddrop.
(5)[推荐人id]
Dieken
----------------------------------------------------------------------------
(1)[插件的名称]
DrawIt
(2)[插件的功能]
方便的画连线图。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=40
(4)[备注或特别提醒]
(5)[推荐人id]
Dieken
--------------------------------------------------------------------------
(1)[插件的名称]
Mark
(2)[插件的功能]
同时高亮显示多次搜索结果,这个特性非常有利于显示代码
中某些变量或函数的调用位置。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=1238
(4)[备注或特别提醒]
类似的还有:
MultipleSearch
http://www.vim.org/scripts/script.php?script_id=479
MultipleSearch2
http://www.vim.org/scripts/script.php?script_id=1183
otf
http://www.vim.org/scripts/script.php?script_id=634
(5)[推荐人id]
Dieken
------------------------------------------------------------------------
(1)[插件的名称]
SearchComplete
(2)[插件的功能]
用/或者?搜索时按tab补全要搜索的单词。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=474
(4)[备注或特别提醒]
(5)[推荐人id]
Dieken
------------------------------------------------------------------------
(1)[插件的名称]
vcscommand
(2)[插件的功能]
集成cvs和svn到vim中,可以在vim中看log,diff,
annotate,commit等等。需要安装cvs和svn的命令行版本。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=90
(4)[备注或特别提醒]
(5)[推荐人id]
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=90
(4)[备注或特别提醒]
(5)[推荐人id]
Dieken
-----------------------------------------------------------------------
(1)[插件的名称]
switchtags
(2)[插件的功能]
根据当前编辑文件的全路径名切换tags选项,这样就可以
在vim中同时查看多个项目的代码时Ctrl-]不会互相串。
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=1344
(4)[备注或特别提醒]
老早以前写的,也许有点用,推荐一下。
需要Perl插件支持(官方提供的gvim70.exe包含这个)。
(5)[推荐人id]
Dieken
-------------------------------------------------------------------------
(1)[插件的名称]
ccal.rb
(2)[插件的功能]
AddChineselunarcalenderfunctionalitytocalendar.vim
(3)[插件的下载地址]
本版文章号:8906(若有变,请搜索版面)
(4)[Appendix]
*Feature
Support200years(1900-2100)lunarcalendarcalculation
*Requirements:
vim-rubyinterface(ForWinXP,ifyoudonotwishtoinstallRuby,justput
msvcrt-ruby18.dllinPATH)
*Usage:
a)putccal.rbin$VIM/vimfiles/plugindir
b)Addfollowinglinesin.vimrc
c)Opencalendarwindowvia:Calendaror:CalendarH,placecursoronadate,
press'gc'
"------------------------------------------------------------
"Lunarcalendarfunctionforcalendar.vimplugin
"------------------------------------------------------------
function!s:GetLunarDate(day,month,year,week,dir)
ruby<<EOF
$:.unshift(VIM::evaluate("expand('$VIM/vimfiles/plugin')"))
require'ccal'
d,m,y=VIM::evaluate("a:day").to_i,VIM::evaluate("a:month").to_i,
VIM::evaluate("a:year").to_i
cc=Calendar::ChineseCalendar.new(y,m,d)
#printtheprettydatetext
season_color=casem
when12,1,2:'AliceBlue'#winterwhite
when3..5:'MediumSpringGreen'#springgreen
when6..8:'DeepSkyBlue1'#summernight
when9..11:'#eec080'#autumngold
end
VIM::command("highlightDateColorgui=noneguifg=#{season_color}")
VIM::command("echohlDateColor|echo'#{cc.chinese_format}'|echohlNone")
EOF
endfunction
"------------------------------------------------------------
"customizecalendaraction
"------------------------------------------------------------
function!s:CalendarDoCustom(action)
letl:tmpvar=g:calendar_action
letg:calendar_action=a:action
exe"normal/<CR>"
letg:calendar_action=l:tmpvar
endfunction
"Usethefollowingformattomapnewcalendaractions
autocmdBufNewFile__Calendarnmap<buffer><silent>gc:call<SID>
CalendarDoCustom("<SID>GetLunarDate")<CR>
*Screenshot
附件
*OnlytestedonWinXP
-------------------------------------------------------------------------
(1)[插件的名称]
Viki/Deplate
(2)[插件的功能]
Thispluginaddswiki-likehypertextcapabilitiestoVim.
Youcanusevikiasa"minor"mode(i.e.,asanadd-ontoanyothermode)
orasafull-fledgedwikimode.Thereisalsoanadd-onpluginfor"
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=861
--------------------------------------------------------------------------
(1)[插件的名称]
NERD_tree
(2)[插件的功能]
TheNERDtreeallowsyoutoexploreyourfilesystemandtoopenfiles
anddirectories.Itpresentsthefilesystemtoyouintheformofatree
whichyoumanipulatewiththekeyboardand/ormouse.
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=1658
(4)[备注或特别提醒]
ThefollowingfeaturesandfunctionalityareprovidedbytheNERDtree:
*Filesanddirectoriesaredisplayedinahierarchicaltreestructure
*Differenthighlightingisprovidedforthefollowingtypesofnodes:
*files
*directories
*sym-links
*windows.lnkfiles
*read-onlyfiles
(5)[推荐人id]
runsnake
------------------------------------------------------------------------
(1)[插件的名称]
fencview.vim
(2)[插件的功能]
我就来推荐一下我自己的插件^_^新版本完善以后就会更新到vim.org
FencView.vim:Viewamulti-byteencodedfileindifferentencodings.
scriptkarmaRating30/12,Downloadedby139
createdby
MingBai
scripttype
utility
description
Install:
CopyFencView.vimtoyourplugindirectory.
Usage:
SelectaencodingfromtheTools/Encodingmenujustlikewhatyoudidin
Firefox/IEoryoucanuse":FencView"commandtoopentheencoding
listwindowand"Enter"keytoselecttheencodingundercursorto
reloadthefile.
ScreenShot:
http://mbbill.googlepages.com/fenc.png
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=1708
(4)[备注或特别提醒]
(5)[推荐人id]
mbbill
-------------------------------------------------------------------------
(1)[插件的名称]
matrix
(2)[插件的功能]
是的,说的就是电影Matrix!Vim的脚本并不是都干“正经事”的
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=1189
(4)[备注或特别提醒]
想看一下电影里那些酷酷的字符在Vim的窗口里翻滚吗?
发一个命令“:Matrix”即可按任意键退出
(5)[推荐人id]
runsnake
---------------------------------------------------------------------------
(1)[插件的名称]
taglist
(2)[插件的功能]
程序员必备插件
(3)[插件的下载地址]
本版文章号:8911(若有变动,请搜索本版)
(4)[备注或特别提醒]
附件taglist跟原版taglist几乎一模一样,不过允许用户自定义一个filter,
把要显示的tagname修改一下。filter的原形是FilterName(filetype,tagname),
返回值作为显示在taglist窗口中的标签。起因是我在用taglist查看Javanative
函数时,由于Javanative函数名是Java_packagename_ClassName_methodName的形式,
名称太长,在taglist窗口里看不到实际的函数名,于是就做了点手脚,把tag名字处
理了一下。
*示例:
前述的filter可以定义为如下,放在vimrc中:
function!TagNameFilter(ft,tag)
letl:newtag=a:tag
"FiltertheJavanativemethodnames,removepackagequalification.
"(changeJava_some_package_ClassName_methodNametoClassName_methodName)
ifa:ft=='c'&&a:tag=~'Java_/(/w/+_/)/+'
letl:reserve_classname=1"indicateweneedclassname
letl:pad=matchstr(a:tag,'^/s*')"leadingspaceisrequiredbytaglist
letl:idx=strridx(a:tag,'_')
ifl:reserve_classname
letl:idx=strridx(a:tag,'_',l:idx-1)
endif
letl:newtag=l:pad.strpart(a:tag,l:idx+1)
endif
returnl:newtag
endfunction
"ifg:tag_name_filterisnotset,fallbacktodefaultfilter
letg:tag_name_filter="TagNameFilter"
------------------------------------------------------------------------------
(1)[插件的名称]
Tetris
(2)[插件的功能]
俄罗斯方块游戏
(3)[插件的下载地址]
http://www.vim.org/scripts/script.php?script_id=172
(4)[备注或特别提醒]
呵呵,玩到100分就算很不错了。/te开始游戏,尽量不要在gui模式下玩
(5)[推荐人id]
vimmer
----------------------------------------------------------------------------
(1)[插件的名称]
BlockComment
(2)[插件的功能]
块注释插件,几乎是原插件的重写
(3)[插件的下载地址]
本版文章号:8914(若有变动,请搜索本版)
(4)[备注或特别提醒]
*Usage
/cComment(linewise/blockwise)
/vUnComment(linewise/blockwise)
/bUnCommentBlock(Uncommentthewholecommentedblock)
/dDeleteComment(Deletewholecommentedblock)
/jJavadocstyleComment(Nocommandtouncommentityet)
Itiseasytoaddnewcommenttype,seeCommentStrfunctionin
BlockComment.vim
*Example
The/vcommandallowsuseruncommentpartofacommentedblock:
/*---------/*---------
*line1*line1
*line2placecursoronline2,=>*---------*/
*line3press/vline2uncommentedline2
*---------*//*---------
*line3
*---------*/
-------------------------------------------------------------------------