Ⅰ. 插件描述
A plugin for NERDTree that allows for chmod'ing files.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'evandotpro/nerdtree-chmod'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'evandotpro/nerdtree-chmod'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'evandotpro/nerdtree-chmod'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/evandotpro/nerdtree-chmod
Ⅳ. 文档说明
This is a plugin for NERDTree to allow for chmod'ing files in Vim.
When opening the default file menu in NERDTree using <m>, you can hit <x> which
will allow you to chmod the file. Because I primarily use this to toggle whether
a file is executable or not, it will default to either +x or -x as the
parameters to pass to chmod based on whether the file is currently executable
or not. You can remove the +x/-x and change the parameter to anything you'd
like, such as 777, 2775, -wx, etc... The value given is simply given to the
system's chmod command.