diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-09-12 21:08:05 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-09-12 21:14:32 +0900 |
commit | c60ed1758315f0d993fbcbf04459944c87e19a48 (patch) | |
tree | ef9183638391630c0157be73a32ee2b64c259239 /README-VIM.md | |
parent | e0f0b5bcf9e42d16ca4e1007e6d1b170388b3edc (diff) |
[vim] Change the default layout to use popup window
The new default is
{ 'window' : { 'width': 0.9, 'height': 0.6, 'highlight': 'Normal' } }
The default highlight group for the border of the popup window is
'Comment', but 'Normal' seems to be a safer choice.
If you prefer the previous default, add this to your Vim configuration file:
let g:fzf_layout = { 'down': '40%' }
(fzf will fall back to this if popup window is not supported)
Diffstat (limited to 'README-VIM.md')
-rw-r--r-- | README-VIM.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/README-VIM.md b/README-VIM.md index af514da0..126862b2 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -127,8 +127,9 @@ let g:fzf_action = { \ 'ctrl-v': 'vsplit' } " Default fzf layout -" - down / up / left / right +" - down / up / left / right / window let g:fzf_layout = { 'down': '40%' } +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } " You can set up fzf window using a Vim command (Neovim or latest Vim 8 required) let g:fzf_layout = { 'window': 'enew' } @@ -416,8 +417,8 @@ When fzf starts in a terminal buffer, the file type of the buffer is set to `fzf`. So you can set up `FileType fzf` autocmd to customize the settings of the window. -For example, if you use the default layout (`{'down': '40%'}`) on Neovim, you -might want to temporarily disable the statusline for a cleaner look. +For example, if you use a non-popup layout (e.g. `{'down': '40%'}`) on Neovim, +you might want to temporarily disable the statusline for a cleaner look. ```vim if has('nvim') && !exists('g:fzf_layout') |