VIM惯用插件介绍
VIM常用插件介绍
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"1, taglist.vim (依赖于ctags)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=273
软件功能: 能够列出源文件中的tag(function, class, variable, etc)并跳转, 实现了源代码结构和函数列表的展示,功能非常强大
安装配置: [安装]:下载解压后会发现有两个文件夹(doc,plugin),将它们拷贝到~/.vim or ~/vimfiles or $VIM/vimfiels内即可.
[配置]:可以省略,也可以在_vimrc(或.vimrc)内添加以下设置:
"taglist设置
nnoremap <silent> <F9> :TlistToggle<CR> "映射
map <silent> <leader>tl :TlistToogle<cr> "输入",tl",就可以打开/关闭taglist窗口
"let Tlist_Use_SingleClick=1
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
"let Tlist_Show_One_File=1
"let Tlist_Exit_OnlyWindow=1
常用命令: :TlistToggle(或:Tlist): 切换taglist窗口
:help taglist: 获取taglist插件帮助信息
注意事项:
1)If the exuberant ctags utility is not present in your PATH, then set the
Tlist_Ctags_Cmd variable to point to the location of the exuberant ctags
utility (not to the directory) in the .vimrc file.
2)If you are running a terminal/console version of Vim and the terminal
doesn't support changing the window width then set the
'Tlist_Inc_Winwidth' variable to 0 in the .vimrc file.
Tlist_Use_Right_Window:
如果为1则表示taglist窗口出现在右侧(默认为在左边)
Tlist_File_Fold_Auto_Close:
1-当同时显示多个文件中的tag时,可使taglist只显示当前文件tag,其它文件的tag都被折叠起来。
Tlist_Auto_Open:
1-启动VIM后,自动打开taglist窗口;
Tlist_Exit_OnlyWindow:
1表示taglist窗口是最后一个窗口时退出VIM
Tlist_Ctags_Cmd: 用于指定你的Exuberant ctags程序的位置,
如果它没在你PATH变量所定义的路径中,需要使用此选项设置一下
Tlist_Show_One_File:
显示多个文件中的tag,缺省为显示多个文件中的tag,如果不想同时显示多个文件可以将其设置为1,
Tlist_Sort_Type:
设置为”name”可以使taglist以tag名字进行排序,缺省是按tag在文件中出现的顺序进行排序。
Tlist_Show_Menu:
1-表示在gvim中显示taglist菜单,
你可以使用Tlist_Max_Submenu_Items和Tlist_Max_Tag_Length来控制菜单条目数和所显示tag名字的长度
Tlist_Use_SingleClick:
单击或双击一个tag时会跳到该tag定义的位置; 0(默认)=双击,1=单击
Tlist_Close_On_Select:
1-选择了tag后自动关闭taglist窗口
Tlist_Process_File_Always:
1-希望taglist始终解析文件中的tag,不管taglist窗口有没有打开
Tlist_WinHeight,Tlist_WinWidth:
设置taglist窗口的高度和宽度
Tlist_Use_Horiz_Window:
设置taglist窗口横向显示
快捷键:
<CR> 跳到光标下tag所定义的位置,用鼠标双击此tag功能也一样
o 在一个新打开的窗口中显示光标下tag
<Space> 显示光标下tag的原型定义
u 更新taglist窗口中的tag
s 更改排序方式,在按名字排序和按出现顺序排序间切换
x taglist窗口放大和缩小,方便查看较长的tag
+ 打开一个折叠,同zo
- 将tag折叠起来,同zc
* 打开所有的折叠,同zR
= 将所有tag折叠起来,同zM
[[ 跳到前一个文件
]] 跳到后一个文件
q 关闭taglist窗口
<F1> 显示帮助
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"2, NERD_tree.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”#
下载网址: http://www.vim.org/scripts/script.php?script_id=1658
软件功能: 在Vim编辑器中以树状方式浏览系统中的文件和目录,支持快捷键与鼠标操作,使用起来十分方便。
NERD tree能够以不同颜色高亮显示节点类型,并包含书签、过滤等实用功能。
安装配置: [安装]:解压缩后会有doc, plugin, nerdtree_plugin3个文件夹,将它们
拷贝到~/.vim or $VIM/vimfiles内即可(同taglist)。
[配置]:可以_vimrc(.vimrc)文件中做映射
"NERD_tree plugin setting swap
map <F10> :NERDTree<CR> "mapping
imap <F10> <ESC> :NERDTreeToggle<CR>
常用命令: NERDTree回车,在gvim窗口的左侧就会出现树形的窗口
o 打开关闭文件或者目录
t 在标签页中打开
T 在后台标签页中打开
! 执行此文件
p 到上层目录(系统会以你打开文件的所在目录为根目录, 所以如果你打开的文件非项目根目录时,你可能要点击"..(up a dir)"将目录上移, 直至项目根目录)
P 到根目录
K 到第一个节点
J 到最后一个节点
u 打开上层目录
m 显示文件系统菜单(添加、删除、移动操作)
? 帮助
q 关闭
Shift+R 刷新目录树
在TagList窗口,光标移到某一条目上,按回车会自动跳转到该条目定义处。按空格会在屏幕下方的命令栏内
显示tag在源码中完整的表达。
注意事项:
1) :help NERD_tree.txt for the help page
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
“3, bufexplorer
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=42
软件功能: 方便切换 buffer,切换 buffer后列表自动关闭。
安装方法: 同taglist
常用命令: \be,\bv,\bs 激活bufexplorer;
j,k 可以上下移动光标;
回车 打开光标所在的文件
如果窗口被分割为两个子窗口,分别打开file1和file2,
此时光标在file1中,如果想切换到file2中,可以先\be激活bufexplorer,然后移动光标到file2,按t即可跳转到file2;
注意事项: 使用一个vim打开多个文件,bufexplorer才起作用
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"netrw.vim(only for windows)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址:http://www.vim.org/scripts/script.php?script_id=1075
软件功能:
安装方法:[安装]:下载文件vba包,用VIM打开,敲入"so %"执行自动安装即可。
[配置]:
let g:netrw_winsize = 30
"输入',fe'时,就会打开一个垂直分隔的窗口浏览当前文件所在的目录,窗口的宽度为30。
nmap <silent> <leader>fe :Sexplore!<cr>
常用命令::e /.../src
注意事项:1)特点是不仅可以管理本地文件及目录,还可以管理远程文件及目录。
浏览本地文件只是netrw插件的一项小功能,netrw插件最主要的功能是支持远程文件读写。
利用该插件,你可以通过ftp,ssh,http等多种协议来编辑远程文件,也可以浏览远程机器的目录。
2)以下指令摘自于下载网址:
REMOTE EDITING
:e dav://machine[:port]/path uses cadaver
:e fetch://[user@]machine/path uses fetch
:e ftp://[user@]machine[[:#]port]/path uses ftp autodetects <.netrc>
:e http://[user@]machine/path uses http uses wget
:e rcp://[user@]machine/path uses rcp
:e rsync://[user@]machine[:port]/path uses rsync
:e scp://[user@]machine[[:#]port]/path uses scp
:e sftp://[user@]machine/path uses sftp
REMOTE READING
:Nread ? give help
:Nread "machine:path" uses rcp
:Nread "machine path" uses ftp with <.netrc>
:Nread "machine id password path" uses ftp
:Nread "dav://machine[:port]/path" uses cadaver
:Nread "fetch://[user@]machine/path" uses fetch
:Nread "ftp://[user@]machine[[:#]port]/path" uses ftp autodetects <.netrc>
:Nread "http://[user@]machine/path" uses http uses wget
:Nread "rcp://[user@]machine/path" uses rcp
:Nread "rsync://[user@]machine[:port]/path" uses rsync
:Nread "scp://[user@]machine[[:#]port]/path" uses scp
:Nread "sftp://[user@]machine/path" uses sftp
REMOTE WRITING
:Nwrite ? give help
:Nwrite "machine:path" uses rcp
:Nwrite "machine path" uses ftp with <.netrc>
:Nwrite "machine id password path" uses ftp
:Nwrite "dav://machine[:port]/path" uses cadaver
:Nwrite "ftp://[user@]machine[[:#]port]/path" uses ftp autodetects <.netrc>
:Nwrite "rcp://[user@]machine/path" uses rcp
:Nwrite "rsync://[user@]machine[:port]/path" uses rsync
:Nwrite "scp://[user@]machine[[:#]port]/path" uses scp
:Nwrite "sftp://[user@]machine/path" uses sftp
http: not supported!
REMOTE DIRECTORY BROWSING
:e [protocol]://[user]@hostname/path/
:Nread [protocol]://[user]@hostname/path/
LOCAL DIRECTORY BROWSING
:e /some/path/to/a/directory
2)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"4, a.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=31
软件功能: 实现.cpp和.h快速切换
安装方法: 下载后只有一个vim文件, 将其放入~/vimfiles/plugin里即可
常用命令: :A switches to the header file corresponding to the current file being edited (or vise versa)
:AS splits and switches
:AV vertical splits and switches
:AT new tab and switches
:AN cycles through matches
:IH switches to file under cursor
:IHS splits and switches
:IHV vertical splits and switches
:IHT new tab and switches
:IHN cycles through matches
注意事项:
1)路径设置,有时候命令执行无效,那是因为在默认的A.vim中,他们是这么设置的
if (!exists('g:alternateSearchPath'))
let g:alternateSearchPath ='sfr:../source,sfr:../src,sfr:../include,sfr:../inc'
endif
根据自己实际情况,可以在vimrc中自己定义路径后就可以使用了。
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"5, echofunc.vim (依赖于ctags)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”##
下载网址: http://www.vim.org/scripts/script.php?script_id=1735
软件功能: 用于显示函数声明
安装配置: [安装]: 同taglist.
[配置]:可以在$(MYVIMRC)文件内做热键映射, eg.
"echofunc Configuration
let g:EchoFuncKeyPrev='<C-b>'
let g:EchoFuncKeyNext='<C-n>'
常用命令:g:EchoFuncLangsDict
g:EchoFuncLangsUsed
g:EchoFuncMaxBalloonDeclarations
g:EchoFuncKeyNext
g:EchoFuncKeyPrev
注意事项: 使用前用以下命令生成tags,以后编辑代码函数名后打"("时有参数提示,用"Alt+-[|=]"前后跳转.
ctags -R --fields=+ls
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"6, superTab[自动补全, only for windows]
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=1643
软件功能: 按TAB键实现自动补全
安装方法: [安装]: 下载软件包supertab.vba,用VIM打开后,在Normal Mode下执行:":so %"即可实现自动安装。
[配置]:
" 0 - 不记录上次的补全方式
" 1 - 记住上次的补全方式,直到用其他的补全命令改变它
" 2 - 记住上次的补全方式,直到按ESC退出插入模式为止
let g:SuperTabRetainCompletionType=2
" 设置按下<Tab>后默认的补全方式, 默认是<C-P>,
" 现在改为<C-X><C-O>. 关于<C-P>的补全方式,
" 还有其他的补全方式, 你可以看看下面的一些帮助:
" :help ins-completion
" :help compl-omni
let g:SuperTabDefaultCompletionType="<C-X><C-O>"
常用命令:
注意事项:1)虽然有知名度,但补全的准确度仍不高,如果源文件多,有时会造成按一下Tab键然后等着Vim在那狂搜的情况
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"6', NeoComplCache[自动补全]
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址:http://www.vim.org/scripts/script.php?script_id=2620
软件功能:
安装方法:下载zip压缩包,解压后操作同taglist。
常用命令:
注意事项:缺点是文档不全,虽然从只言片语中发现它还支持Snippet,但从文档中没有找到足够的有用信息。
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"6'', snipMate.vim[自动补全三]
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”#####
下载网址:http://www.vim.org/scripts/script.php?script_id=2540
软件功能:
安装方法:[安装]下载软件包(snipMate.zip),解压出来后放至~/.vim(windows下为vimfiles)即可。
[配置]:在vimrc文件内确保已打开文件类型检查:
filetype plugin on
常用命令:
注意事项:
1)虽然使用super-tab、c-support等插件之后vim的代码补全功能有了很大提高,但是离vs下面的vs assistant还是有一定的距离的,比如对于代码块的补全就不是很方便,今天我发现的这个叫做snipMate的插件很好的弥补了这一点,这个插件再次证明了vim是无所不能的,也说明了聪明人要是懒起来真的可以很过分。
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"7, omnicppcomplete(C++)/code_complete(C)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=1520
http://www.vim.org/scripts/script.php?script_id=1764
软件功能: 前者:实现实现C++对象用.或者->调用方法的时候自动产生选择的下拉菜单,可用于 . -> :: 等操作符
后者:实现对函数的补全,当写完一个函数,并打上左括号(之后,按tab键就可以看倒函数参数列表了,包括重载的函数。
安装方法: [安装]前者:解压出来有after/autoload/doc3个文件夹, 将其中的文件取出,同taglist.
后者:只有一个文件code_complete.vim
[配置]在.vimrc或_vimrc文件内,增加: filetype plugin on
常用命令:
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"8, stl.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=2224
软件功能: 支持STL语法高亮
安装方法: 将stl.vim文件放于~/vimfiles/after/syntax/cpp/, 不需要配置.
常用命令:
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"9, stlrefvim.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=2353
软件功能: 让你轻松的拥有C++ STL的文档帮助
安装方法: 同taglist.
常用命令:
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"10, DoxygenToolkit.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”#
下载网址: http://www.vim.org/scripts/script.php?script_id=987
软件功能: 由注释生成文档,并且能够快速生成函数标准注释, 产生Dox格式的注释 写c/c++等函数时使用方便。
安装方法: (略)
常用命令: :Dox
:DoxAuthor
配置方法: eg.
let g:DoxygenToolkit_briefTag_pre="@Synopsis "
let g:DoxygenToolkit_paramTag_pre="@Param "
let g:DoxygenToolkit_returnTag="@Returns "
let g:DoxygenToolkit_blockHeader="--------------------------------------"
let g:DoxygenToolkit_blockFooter="----------------------------------------"
let g:DoxygenToolkit_authorName="Mathias Lorente"
let g:DoxygenToolkit_licenseTag="My own license" <-- !!! Does not end with "\<enter>"
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"11, grep.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=311
软件功能: 在工程中快速查找。
安装方法: [安装] 同taglist
[配置] 可以在_vimrc文件中添加以下代码,以配置成hotkey:
nnoremap <silent> <F3> :Grep<CR>
常用命令: :Grep 另外还有很多,这里略过不表。
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"12, lookup.vim[C++不适用]
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址:http://www.vim.org/scripts/script.php?script_id=2001
软件功能:五星级推荐的好插件!我觉得它是vim上最伟大的插件之一,提供多种方式查找文件,
让你在复杂的目录树中也能轻松自如找到你要的文件
安装方法:略
常用命令:
注意事项:网上提供的资料比较少
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"13, visualmark.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址: http://www.vim.org/scripts/script.php?script_id=1026
软件功能: 高亮书签
安装方法: 同taglist
常用命令: 用gvim打开源码文件,将光标定位在需要添加书签的地方,按下ctrl+F2,即添加了书签.使用F2在书签之间正向切换,shift+F2反向切换。
注意事项:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"14, mru.vim
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”###
下载网址:http://www.vim.org/scripts/script.php?script_id=521
软件功能:给vim增加MRU功能,也就是保留最近打开的文件记录,:MRU打开,q退出,很方便,有过一个支持菜单的类似的插件 不过对于我这样的不用菜单的用户,还是这个命令行的好用一点,因为经常使用,所以我映射到了F2
安装方法:[安装]: 同taglist
[配置]: "记录历史文件的位置
"let MRU_File=$VIM.'\Data\mru_files.txt'
"记录的条数
let MRU_Max_Entries=50
"分割窗口的大小
let MRU_Window_Height=10
"选择文件后打开此窗口自动关闭
let MRU_Auto_Close=1
"简化:,h 打开MRU
map <silent> <leader>h :MRU<CR>
ps:NDRE_tree有bug,如果一打开vim,你就打开NDRE_tree的话,以后打开的文件目录显示都不正确
常用命令:
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
"15, LargeFile.vim(only for windows)
“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”
下载网址:http://www.vim.org/scripts/script.php?script_id=1506
软件功能:让大文件打开快一点
安装方法:下载软件包名称为:LargeFile.vba.gz,解压缩成vba文件,然后用VIM打开输入":so %"执行自动安装。
常用命令:
注意事项:
- 1楼Wentasy5天前 19:04
- 学习了。