From bf99261812c353c3c267a83effd25629c6cf47d2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 10 Mar 2015 13:02:42 +0900 Subject: [PATCH] Use new up/down/left/right options --- Examples-(vim).md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Examples-(vim).md b/Examples-(vim).md index c289866..e624e9d 100644 --- a/Examples-(vim).md +++ b/Examples-(vim).md @@ -12,13 +12,13 @@ command! -nargs=1 Locate call fzf#run( ```vim " Open files in horizontal split nnoremap s :call fzf#run({ -\ 'tmux_height': '40%', -\ 'sink': 'botright split' }) +\ 'down': '40%', +\ 'sink': 'botright split' }) " Open files in vertical horizontal split nnoremap v :call fzf#run({ -\ 'tmux_width': winwidth('.') / 2, -\ 'sink': 'vertical botright split' }) +\ 'right': winwidth('.') / 2, +\ 'sink': 'vertical botright split' }) ``` ### Choose color scheme @@ -28,9 +28,9 @@ nnoremap C :call fzf#run({ \ 'source': \ map(split(globpath(&rtp, "colors/*.vim"), "\n"), \ "substitute(fnamemodify(v:val, ':t'), '\\..\\{-}$', '', '')"), -\ 'sink': 'colo', -\ 'options': '+m', -\ 'tmux_width': 20 +\ 'sink': 'colo', +\ 'options': '+m', +\ 'left': 30 \ }) ``` @@ -49,10 +49,10 @@ function! s:bufopen(e) endfunction nnoremap :call fzf#run({ -\ 'source': reverse(buflist()), -\ 'sink': function('bufopen'), -\ 'options': '+m', -\ 'tmux_height': '40%' +\ 'source': reverse(buflist()), +\ 'sink': function('bufopen'), +\ 'options': '+m', +\ 'down': len(buflist()) + 2 \ }) ``` @@ -102,7 +102,7 @@ command! FZFLines call fzf#run({ \ 'source': buffer_lines(), \ 'sink': function('line_handler'), \ 'options': '--extended --nth=3..', -\ 'tmux_height': '60%' +\ 'down': '60%' \}) ```