Update fzf config
parent
1ccfb2b8fe
commit
5b51c48ece
47
.vimrc
47
.vimrc
|
@ -158,25 +158,16 @@ au FileType markdown nmap <buffer><silent> <leader>v :call mdip#MarkdownClipboar
|
||||||
" `junegunn/fzf` {{{
|
" `junegunn/fzf` {{{
|
||||||
" `junegunn/fzf.vim`
|
" `junegunn/fzf.vim`
|
||||||
|
|
||||||
let g:fzf_layout = {'window': { 'width': 1, 'height': 0.62}}
|
" FZF
|
||||||
let g:fzf_colors =
|
nn <c-p> :FZF<cr>
|
||||||
\ { 'fg': ['fg', 'Normal'],
|
nn <leader>p :FZF<cr>
|
||||||
\ 'bg': ['bg', 'Normal'],
|
nn <leader>b :Buffers<cr>
|
||||||
\ 'hl': ['fg', 'Comment'],
|
nn <leader>h :History<cr>
|
||||||
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
let g:fzf_action = {
|
||||||
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
\ 'ctrl-t': 'tab split',
|
||||||
\ 'hl+': ['fg', 'Statement'],
|
\ 'ctrl-s': 'split',
|
||||||
\ 'info': ['fg', 'PreProc'],
|
\ 'ctrl-v': 'vsplit'
|
||||||
\ 'border': ['fg', 'Comment'],
|
\}
|
||||||
\ 'prompt': ['fg', 'Conditional'],
|
|
||||||
\ 'pointer': ['fg', 'Exception'],
|
|
||||||
\ 'marker': ['fg', 'Keyword'],
|
|
||||||
\ 'spinner': ['fg', 'Label'],
|
|
||||||
\ 'header': ['fg', 'Comment'] }
|
|
||||||
|
|
||||||
let g:ag_working_path_mode="r"
|
|
||||||
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
" `vim-pandoc/vim-pandoc` {{{
|
" `vim-pandoc/vim-pandoc` {{{
|
||||||
" `vim-pandoc/vim-pandoc-syntax`
|
" `vim-pandoc/vim-pandoc-syntax`
|
||||||
|
@ -193,9 +184,13 @@ let g:pandoc#syntax#conceal#urls=1
|
||||||
let g:pandoc#syntax#conceal#blacklist=[]
|
let g:pandoc#syntax#conceal#blacklist=[]
|
||||||
let g:pandoc#syntax#style#emphases=0 " Bug workaround
|
let g:pandoc#syntax#style#emphases=0 " Bug workaround
|
||||||
let g:pandoc#syntax#conceal#cchar_overrides = { "atx": " ", "li": "·" }
|
let g:pandoc#syntax#conceal#cchar_overrides = { "atx": " ", "li": "·" }
|
||||||
|
" Insert path completion
|
||||||
|
" ino <expr><c-f> fzf#vim#complete#path('ag -l -g *.md')
|
||||||
|
" ino <c-f> <plug>(fzf-complete-file-ag)
|
||||||
|
ino <expr><c-f> fzf#vim#complete#path("ag -l -g '' \| sed -e 's/\.md$//'")
|
||||||
" Use `the_silver_searcher` to find results (for selection if selection)
|
" Use `the_silver_searcher` to find results (for selection if selection)
|
||||||
nn <leader>f :Ag<cr>
|
nn <leader>f :Ag<cr>
|
||||||
vm <leader>f y:Ag <C-r>"<cr>
|
vm <leader>f :Ag <C-r>"<cr>
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
@ -284,18 +279,6 @@ au Filetype supercollider packadd scvim
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" FZF
|
|
||||||
nn <c-p> :FZF<cr>
|
|
||||||
nn <leader>p :FZF<cr>
|
|
||||||
nn <leader>b :Buffers<cr>
|
|
||||||
nn <leader>h :History<cr>
|
|
||||||
let g:fzf_action = {
|
|
||||||
\ 'ctrl-t': 'tab split',
|
|
||||||
\ 'ctrl-s': 'split',
|
|
||||||
\ 'ctrl-v': 'vsplit'
|
|
||||||
\}
|
|
||||||
" Insert path completion
|
|
||||||
ino <expr><c-f> fzf#vim#complete#path('rg --files --sort path')
|
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue