Find a file
2015-08-18 03:38:12 +09:00
plugin Update fzf#complete to be used in expression mapping 2015-08-18 03:38:12 +09:00
README.md Add Snippets command for UltiSnips 2015-08-17 18:54:00 +09:00

fzf.vim

A set of fzf-based Vim commands.

Rationale

fzf in itself is not a Vim plugin, and the official repository only provides the basic wrapper function for Vim and it's up to the users to write their own Vim commands with it. However, I've learned that many users of fzf are not familiar with Vimscript and are looking for the "default" implementation of the features they can find in the alternative Vim plugins.

This repository is a bundle of fzf-based commands extracted from my .vimrc to address such needs. The commands are opinionated and not designed to be extremely flexible or configurable, and they are not guaranteed to be backward-compatible.

Installation

Using vim-plug:

Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' }
Plug 'junegunn/fzf.vim'

List of commands

Command List
Files [PATH] Files (similar to :FZF)
Buffers Open buffers
Colors Color schemes
Ag [PATTERN] ag search result (CTRL-A to select all, CTRL-D to deselect all)
Lines Lines in loaded buffers
Tags Tags in the project (ctags -R)
BTags Tags in the current buffer
Locate PATTERN locate command output
History v:oldfiles and open buffers
Snippets Snippets (UltiSnips)
  • All commands except Colors support CTRL-T / CTRL-X / CTRL-V key bindings to open in a new tab, a new split, or in a new vertical split.
  • Bang-versions of the commands (e.g. Ag!) will open fzf in fullscreen

Customization

" This is the default extra key bindings
let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }

License

MIT