Ⅰ. 插件描述
Fuzzy file finding in vim with selectaⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'michaelavila/selecta-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'michaelavila/selecta-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'michaelavila/selecta-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/michaelavila/selecta.vim
Ⅳ. 文档说明
# selecta
A pathogen friendly script for selecta
Add the following to your vimrc to use selecta:
" Find all files in all non-dot directories starting in the working directory.
" Fuzzy select one of those. Open the selected file with :e.
nnoremap <leader>e :SelectaFile<cr>
" As above, but will open in a :split
nnoremap <leader>s :SelectaSplit<cr>
" As above, but will open in a :vsplit
nnoremap <leader>v :SelectaVsplit<cr>
" As above, but will open in a :tabedit
nnoremap <leader>t :SelectaTabedit<cr>
" Find all buffers that have been opened.
" Fuzzy select one of those. Open the selected file with :b.
nnoremap <leader>b :SelectaBuffer<cr>
" Find previously run commands.
" Fuzzy select one of those. Run that command with :
nnoremap <leader>h :SelectaHistoryCommand<cr>
If you need information about selecta.vim you can run :help selecta from within vim.
All credit goes to @garybernhardt