diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2014-06-09 10:05:08 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2014-06-09 10:06:07 +0900 |
commit | d76a3646b7181b14491ddaf45526a39c6aaba807 (patch) | |
tree | 78470f669c3c9ce32015a518543ccb99b0a918f6 /README.md | |
parent | d7c734acd69654aab119cb6ce0c5743c369c5c2b (diff) |
Update Vim example: Rename functions
See: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.260
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -395,20 +395,20 @@ handy mapping that selects an open buffer. ```vim " List of buffers -function! g:buflist() +function! BufList() redir => ls silent ls redir END return split(ls, '\n') endfunction -function! g:bufopen(e) +function! BufOpen(e) execute 'buffer '. matchstr(a:e, '^[ 0-9]*') endfunction nnoremap <silent> <Leader><Enter> :call fzf#run({ -\ 'source': reverse(g:buflist()), -\ 'sink': function('g:bufopen'), +\ 'source': reverse(BufList()), +\ 'sink': function('BufOpen'), \ 'options': '+m', \ 'tmux_height': '40%' \ })<CR> |