-"----------------------
-" undotree setting
-"----------------------
-if has_key(plugs, 'undotree')
- nnoremap <leader>u :UndotreeShow<CR>
+" Navigation
+if has_key(plugs, 'fzf.vim')
+ command! -bang -nargs=* GGrep
+ \ call fzf#vim#grep(
+ \ 'git grep --line-number -- ' . fzf#shellescape(<q-args>),
+ \ fzf#vim#with_preview({
+ \ 'dir': systemlist(['git', '-C', expand('%:p:h'), 'rev-parse', '--show-toplevel'])[0]
+ \ }), <bang>0)
+ nnoremap <C-p> :GFiles<CR>
+ nnoremap <C-f> :GGrep<CR>