rstacruz / vim-fastunite

Search for files fast
48 stars 6 forks source link

vim-fastunite

The fastest way to navigate your files powered by unite.vim. Just press Ctrl-P. No lags.

About

vim-fastunite is pre-configured to give you a pleasant out-of-the-box experience with unite.vim, the best Vim file matcher.

Just install the vim plugins and ag — no need for complicated vimrc incantations.

Read documentation ›


Installation

Use your favorite Vim package manager to install vim-fastunite with its dependencies. With vim-plug:

" ~/.vimrc
Plug 'Shougo/vimproc.vim', { 'do': 'make' }
Plug 'Shougo/unite.vim'
Plug 'rstacruz/vim-fastunite'

Plug 'Shougo/neomru.vim'
Plug 'Shougo/unite-outline'
Plug 'tsukkee/unite-tag'

map <C-p> [unite]p

If you're not using vim-plug and it's the first time to install vimproc, be sure to run make.

Install the_silver_searcher for faster searches. (optional, but recommended)

brew install the_silver_searcher   # OSX
apt-get install silversearcher-ag  # Ubuntu
yum install the_silver_searcher    # Fedora

Now press <Ctrl-p> in your big project.

Only the first 3 vimrc lines are required; the other plugins are optional but recommended.


Usage

Press ,up to search for files in the project.

All keys are prefixed with <Leader>u by default (referred to as [unite]). Assuming your leader key is , that's:

Key Description
,u p Project: search for files in the project
,u t Tags: search for tags (requires unite-tag)
,u r Recent: show recent files (require (neomru)
,u o Outline: outline sidebar (requires unite-outline)

For grepping:

Key Description
,u g Grep: search in files
,u ] search current word under cursor
,u G Show last grep window

Documentation →


Features

So you've probably tried Unite before. You added a few lines to your vimrc to get Unite running. If you're like me, you probably used it a few times and forgot about it because it was slow.

This plugin is a bag of many tweaks to make the Unite experience more seamless. Here are a few:


Tips and tricks