vim-vinegar


Ⅰ. 插件描述

vinegar.vim: combine with nerdtree to create a delicious salad dressing

Ⅱ. 基本信息

创建日期:  2013-12-24
使用用户:  42
Github星:  45
插件作者:  Dhruva Sagar

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'dhruvasagar/vim-vinegar-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'dhruvasagar/vim-vinegar-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'dhruvasagar/vim-vinegar-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vinegar.vim

Split windows and the project drawer go together like oil and vinegar. I
don't mean to say that you can combine them to create a delicious salad

  1. I mean that they don't mix well!
  • Drew Neil

Update: This fork of vinegar.vim works with NERDTree instead for a better user

    experience.

You know what netrw is, right? The built in directory browser? Well,
vinegar.vim enhances netrw, partially in an attempt to mitigate the need for
more disruptive "project drawer" style plugins.

Some of the behaviors added by vinegar.vim would make excellent upstream

  1. Many, the author would probably reject. Others are a bit too wild
  2. even consider.
  • Press - in any buffer to hop up to the directory listing and seek to the
    file you just came from. Keep bouncing to go up, up, up. Having rapid

directory access available changes everything.

  • All that annoying crap at the top is turned off, leaving you with nothing
    but a list of files. This is surprisingly disorienting, but ultimately

very liberating. Press I to toggle until you adapt.

  • The oddly C-biased default sort order and file hiding is replaced with a
    sensible application of 'suffixes' and 'wildignore'.
  • Press . on a file to pre-populate it at the end of a : command line.
    This is great, for example, to quickly initiate a :grep of the file or

directory under the cursor. There's also !, which starts the line off
with a bang. Type !chmod +x and get :!chmod +x path/to/file.

  • Press cd or cl to :cd or :lcd to the currently edited directory.
  • Press ~ to go home.

Installation

If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/dhruvasagar/vim-vinegar.git

License

Copyright © Tim Pope. Distributed under the same terms as Vim itself.
See :help license.

添加新评论