Ⅰ. 插件描述
:paw_prints: A Vim plugin to run shell like ls command after :cd, :lcd and so onⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'b4b4r07/vim-autocdls'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'b4b4r07/vim-autocdls'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'b4b4r07/vim-autocdls'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/b4b4r07/vim-autocdls
Ⅳ. 文档说明

Automatically execute shell-like ls command after :cd in Vim.
DEMO:

Description
vim-autocdls provides :Ls user-defined command that id shell-like ls commands in Vim. In addition, if g:autocdls_autols_enabled is true in this plugin, :Ls command is executed automatically after executing :cd, :lcd and so on. Thanks to that, make it easy to know file list in cwd.
Usage
Ls
:Ls[!] [{path}]
Show up some files in the {path} directory to cmd-line. If you want to show up all the files, including the files that begin with a dot in the {path} directory, then please put a bang. (:Ls!) If you omit the {path}, the current directory is specified as {path}.
LsGrep
:LsGrep[!] {word}
Display the candidate that has the name of the directory that contains the {word} in the current directory. As well as :Ls!, if you want to search the directory that contains the {word}, then please put a bang. (:LsGrep!)
g:autocdls_show_filecounter
- Default is 1
- Show number of files in current directory to cmd-line
g:autocdls_show_pwd
- Default is 0
- Print working directory on cmd-line
and any more.
For more information, see also help
Installation
NeoBundle 'b4b4r07/vim-autocdls'
Plugin 'b4b4r07/vim-autocdls'
Plug 'b4b4r07/vim-autocdls'