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%' \}) ```