Ⅰ. 插件描述
Create a menu that mirrors a directory treeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/createmenupath-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/createmenupath-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/createmenupath-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/CreateMenuPath.vim
Ⅳ. 文档说明
This file provides a function to create a menu that mirrors a directory tree.
Usage:
CreateMenuPath({path} [, {menu name} [, {menu priority} [, {filename ignore pattern1} [, {filename ignore pattern2} ...]]]])
Examples:
:call CreateMenuPath('~') " Creates a menu of your home directory.
:call CreateMenuPath('~/public_html', 'Files.Web Page', '600.100', 'c.(gif|jpe=g|png|ico|bmp|tiff=)$') " Files.Web Page menu, priority 600.100, ignoring some image files.
A default filename ignore pattern is provided which ignores a number of image, audio and archive files, but it's incomplete.
The global variable "CMP_Recurse_Limit" can be set to specify the maximum sub-directory depth to scan. Set it to 0 (the default) for infinite recursion. Set it to 1 to scan only the specified directory.