vimdir.vim


Ⅰ. 插件描述

Manage files and directories in vim

Ⅱ. 基本信息

创建日期:  2014-10-24
使用用户:  6
Github星:  9
插件作者:  c0r73x

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'c0r73x/vimdir-vim-ours'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'c0r73x/vimdir-vim-ours'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'c0r73x/vimdir-vim-ours'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/c0r73x/vimdir.vim

Ⅳ. 文档说明

vimdir.vim

Manage files and directories in vim

Inspired by vidir by Joey Hess (https://joeyh.name/code/moreutils/)

Installation

Vundle

Bundle 'c0r73x/vimdir.vim'

NeoBundle

NeoBundle 'c0r73x/vimdir.vim'

Manual

Download the plugin and paste it into your plugin directory.

Usage

To list files and folders

:Vimdir [directory]

To list files and folders recursive

:VimdirR [directory]

If no directory is specified Vimdir will use the current path

Changes will be applyed when you save the vimdir buffer. If you want to cancel
just close the buffer without saving.

Colors

vimdir.vim doesn't come with highlighting support but using the vidir-ls.vim plugin works perfectly.

Configuration

To show hidden files and folders set this in your vimrc

let g:vimdir_show_hidden = 1

To force removal of files and folders set this in your vimrc
(will add this to the overwrite code when its implemented)

let g:vimdir_force = 1

bin/vimdir

You can use the bin/vimdir script to execute vimdir directly from the terminal.
Just place it in your path and run vimdir.

Todo

  • Add support to expand folders
  • Prompt for file overwrite

添加新评论