mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-18 18:25:58 +08:00
Update README
This commit is contained in:
@@ -157,6 +157,11 @@ let g:fzf_commands_expect = 'alt-enter,ctrl-x'
|
|||||||
You can use autoload functions to define your own commands.
|
You can use autoload functions to define your own commands.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
" git grep
|
||||||
|
command! -bang -nargs=* GGrep
|
||||||
|
\ call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)
|
||||||
|
|
||||||
|
" We use VimEnter event so that the code is run after fzf.vim is loaded
|
||||||
autocmd VimEnter * command! Colors
|
autocmd VimEnter * command! Colors
|
||||||
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'})
|
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'})
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -183,7 +183,11 @@ Advanced customization using autoload functions~
|
|||||||
|
|
||||||
You can use autoload functions to define your own commands.
|
You can use autoload functions to define your own commands.
|
||||||
>
|
>
|
||||||
" Advanced customization using autoload functions
|
" git grep
|
||||||
|
command! -bang -nargs=* GGrep
|
||||||
|
\ call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)
|
||||||
|
|
||||||
|
" We use VimEnter event so that the code is run after fzf.vim is loaded
|
||||||
autocmd VimEnter * command! Colors
|
autocmd VimEnter * command! Colors
|
||||||
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'})
|
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'})
|
||||||
<
|
<
|
||||||
|
|||||||
Reference in New Issue
Block a user