quick-file


Ⅰ. 插件描述

a quick jump to file plugin for vim

Ⅱ. 基本信息

创建日期:  2014-07-08
使用用户:  3
Github星:  9
插件作者:  zhao chang

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'zhchang/quick-file'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'zhchang/quick-file'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'zhchang/quick-file'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

quick_file

jump to files, even though you might not remember the full path and / or the full name

vim.org link:
http://www.vim.org/scripts/script.php?script_id=4980

NEED VIM WITH PYTHON SUPPORT!!!

:AG term [extension]

This requires https://github.com/ggreer/the_silver_searcher installed.
opens files that has text match to the search tearm in quick-fix window. There is also a shortcut available: pressing 'ga' with cursor in word to search for occurence of that word. (because I am currently doing golang, so I hooked up this shortcut *.go files, but you can change that with ease in your .vimrc)

:QF filename-fragment

the plugin will try to jump to shallowest match under current directory and it's sub directories. Also, it is possible to provide more details for a deeper match.

let's say we have a/c.txt a/b/c.txt

:QF c will jump to a/c.txt and start editing
:QF c b will jump to a/b/c.txt

By Default, QF will search on secondary search path when pwd(.) failed to return any results, and the default secondary search path is ~, this behaviour is governed by global variable g:QF_ASP. Thanks for the excellent idea https://github.com/htfy96

To Change the secondary search path: let g:QF_ASP="your-path"
To Disable secondary search: let g:QF_ASP=""

Support ack wrapper as :ACK search-term file-ext
e.g.:
:ACK TODO go

添加新评论