diff --git a/.vimrc b/.vimrc index 79be7af..add6930 100644 --- a/.vimrc +++ b/.vimrc @@ -158,25 +158,16 @@ au FileType markdown nmap v :call mdip#MarkdownClipboar " `junegunn/fzf` {{{ " `junegunn/fzf.vim` -let g:fzf_layout = {'window': { 'width': 1, 'height': 0.62}} -let g:fzf_colors = -\ { 'fg': ['fg', 'Normal'], - \ 'bg': ['bg', 'Normal'], - \ 'hl': ['fg', 'Comment'], - \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], - \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], - \ 'hl+': ['fg', 'Statement'], - \ 'info': ['fg', 'PreProc'], - \ '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" - -" }}} +" FZF +nn :FZF +nn p :FZF +nn b :Buffers +nn h :History +let g:fzf_action = { + \ 'ctrl-t': 'tab split', + \ 'ctrl-s': 'split', + \ 'ctrl-v': 'vsplit' + \} " `vim-pandoc/vim-pandoc` {{{ " `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#style#emphases=0 " Bug workaround let g:pandoc#syntax#conceal#cchar_overrides = { "atx": " ", "li": "ยท" } +" Insert path completion +" ino fzf#vim#complete#path('ag -l -g *.md') +" ino (fzf-complete-file-ag) +ino fzf#vim#complete#path("ag -l -g '' \| sed -e 's/\.md$//'") " Use `the_silver_searcher` to find results (for selection if selection) nn f :Ag -vm f y:Ag " +vm f :Ag " " }}} @@ -284,18 +279,6 @@ au Filetype supercollider packadd scvim " }}} -" FZF -nn :FZF -nn p :FZF -nn b :Buffers -nn h :History -let g:fzf_action = { - \ 'ctrl-t': 'tab split', - \ 'ctrl-s': 'split', - \ 'ctrl-v': 'vsplit' - \} -" Insert path completion -ino fzf#vim#complete#path('rg --files --sort path') " }}}