From dbc68428c578c32eae6a91a9ac1c713a7e8cace9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 22 Apr 2015 02:04:21 +0900 Subject: [PATCH] Updated Examples (vim) (markdown) --- Examples-(vim).md | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/Examples-(vim).md b/Examples-(vim).md index 2a1e899..964f981 100644 --- a/Examples-(vim).md +++ b/Examples-(vim).md @@ -1,48 +1,3 @@ -### Configuring `:FZF` command - -- `g:fzf_action` -- `g:fzf_height` -- `g:fzf_launcher` - -#### Key bindings - -```vim -" ctrl-[a-z], alt-[a-z], f[1-4], or any single character -let g:fzf_action = { - \ 'ctrl-m': 'e', - \ 'ctrl-t': 'tabedit', - \ 'alt-j': 'botright split', - \ 'alt-k': 'topleft split', - \ 'alt-h': 'vertical topleft split', - \ 'alt-l': 'vertical botright split' } -``` - -#### Window size - -If you're on a tmux session or using Neovim, `:FZF` will launch fzf in a -split-window whose height can be adjusted with `g:fzf_height` (default: -'40%'). However, the bang version (`:FZF!`) will always start in fullscreen. - -#### GVim - -In GVim, you need an external terminal emulator to start fzf with. `xterm` -command is used by default, but you can customize it with `g:fzf_launcher`. - -```vim -" This is the default. %s is replaced with fzf command -let g:fzf_launcher = 'xterm -e bash -ic %s' - -" Use urxvt instead -let g:fzf_launcher = 'urxvt -geometry 120x30 -e sh -c %s' -``` - -If you're running MacVim on OSX, I recommend you to use iTerm2 as the -launcher. Refer to the [this wiki page][macvim-iterm2] to see how to set up. - -[macvim-iterm2]: https://github.com/junegunn/fzf/wiki/On-MacVim-with-iTerm2 - ---- - ### `locate` command integration ```vim