From 741071920025f17243da4e70190a1d49420d47cd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 22 Oct 2016 01:14:28 +0900 Subject: [PATCH] Updated Configuring FZF command (vim) (markdown) --- ...mand-(vim).md => Configuring-Vim-plugin.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) rename Configuring-FZF-command-(vim).md => Configuring-Vim-plugin.md (59%) diff --git a/Configuring-FZF-command-(vim).md b/Configuring-Vim-plugin.md similarity index 59% rename from Configuring-FZF-command-(vim).md rename to Configuring-Vim-plugin.md index 300e430..419d469 100644 --- a/Configuring-FZF-command-(vim).md +++ b/Configuring-Vim-plugin.md @@ -4,6 +4,10 @@ If you set up Vim plugin for fzf, `:FZF` command will become available. The foll - Customizable extra key bindings for opening selected files in different ways - `g:fzf_layout` - Determines the size and position of fzf window (tmux pane or Neovim split) +- `g:fzf_colors` + - Customizes fzf colors to match the current color scheme +- `g:fzf_history_dir` + - Enables history feature - `g:fzf_launcher` - (Only in GVim) Terminal emulator to open fzf with - `g:Fzf_launcher` for function reference @@ -24,6 +28,27 @@ let g:fzf_layout = { 'down': '~40%' } " In Neovim, you can set up fzf window using a Vim command let g:fzf_layout = { 'window': 'enew' } let g:fzf_layout = { 'window': '-tabnew' } + +" Customize fzf colors to match your color scheme +let g:fzf_colors = +\ { 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Comment'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Statement'], + \ 'info': ['fg', 'PreProc'], + \ 'prompt': ['fg', 'Conditional'], + \ 'pointer': ['fg', 'Exception'], + \ 'marker': ['fg', 'Keyword'], + \ 'spinner': ['fg', 'Label'], + \ 'header': ['fg', 'Comment'] } + +" Enable per-command history. +" CTRL-N and CTRL-P will be automatically bound to next-history and +" previous-history instead of down and up. If you don't like the change, +" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS. +let g:fzf_history_dir = '~/.local/share/fzf-history' ``` ### GVim