From aed5f50c5068c28083827a6365c6ca8691e910a4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Apr 2017 12:03:24 +0900 Subject: [PATCH] Destroyed Configuring Vim plugin (markdown) --- Configuring-Vim-plugin.md | 73 --------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 Configuring-Vim-plugin.md diff --git a/Configuring-Vim-plugin.md b/Configuring-Vim-plugin.md deleted file mode 100644 index 8b190f5..0000000 --- a/Configuring-Vim-plugin.md +++ /dev/null @@ -1,73 +0,0 @@ -If you set up Vim plugin for fzf, `:FZF` command will become available. The following variables are used to configure its behavior. - -- `g:fzf_action` - - 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 - -### Examples - -```vim -" This is the default extra key bindings -let g:fzf_action = { - \ 'ctrl-t': 'tab split', - \ 'ctrl-x': 'split', - \ 'ctrl-v': 'vsplit' } - -" Default fzf layout -" - down / up / left / right -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' } - -" This will split only under the current window. -let g:fzf_layout = { 'window': '10 split | enew'} - -" 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 - -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 \ No newline at end of file