Ⅰ. 插件描述
add all files recursively as menu entryⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/files2menu-pm'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/files2menu-pm'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/files2menu-pm'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/files2menu.pm
Ⅳ. 文档说明
DESCR finds files according to predefined file masks in all subdirs starting in parent dir (default).
creates menu commands for gvim for each file found (creates submenues automatically after 40 menu entries).
filemasks and other settings may be easily changed within the perl script for your needs.
Usage: files2menu.pm <options>
options:
generate file list on stdout (default)
-o <filelist> generate filelist in file <filelist>
-v generate VIM scriptfile
-v <scriptfile> generate VIM Scriptfile <scriptfile>
-f <patternlist> use search pattern <patternlist>
predefined pattern lists: CPP, EXE, MAK, GL, DOC, VIM
-m create menu entry <menuEntry> for each found file (blanks allowed in name)
-c create submenu after <n> entries
-d debug mode
-s <startdir> start in CWD (default) or parent dir ('..') or <startdir>
I used 'ls' because any other tools had trouble with that genious system of long file names under Windows and Novell.