Skip to content

Commit

Permalink
added fzf config in vim
Browse files Browse the repository at this point in the history
  • Loading branch information
akash0x53 committed Jun 18, 2020
1 parent 5473b85 commit d12199b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ noremap <leader>p :botright terminal ++close ++rows=10 python<CR>
map <C-n> :NERDTreeToggle<CR>
map <C-p> :FZF<CR>
"----------- FZF ------------
if executable('ag')
set grepprg='ag\ --nocolor\ --nogroup'
let $FZF_DEFAULT_COMMAND='ag --literal --files-with-matches --nocolor -g ""'
let $FZF_DEFAULT_OPTS="--height 100% --layout=reverse --border --preview 'head -100 {}' --info=inline"
endif

"----------- On Startup -----------
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

0 comments on commit d12199b

Please sign in to comment.