Install ag, fzf

This commit is contained in:
2017-11-01 12:04:51 -07:00
parent f99d1a6c60
commit b1575d8747
6 changed files with 26 additions and 4 deletions

9
.gitmodules vendored
View File

@@ -1,6 +1,3 @@
[submodule ".vim/bundle/ctrlp.vim"]
path = .vim/bundle/ctrlp.vim
url = git@github.com:kien/ctrlp.vim.git
[submodule ".vim/bundle/nerdtree"]
path = .vim/bundle/nerdtree
url = git@github.com:scrooloose/nerdtree.git
@@ -46,3 +43,9 @@
[submodule ".vim/bundle/tsuquyomi"]
path = .vim/bundle/tsuquyomi
url = git@github.com:Quramy/tsuquyomi.git
[submodule ".vim/bundle/fzf.vim"]
path = .vim/bundle/fzf.vim
url = git@github.com:junegunn/fzf.vim.git
[submodule ".vim/bundle/ack.vim"]
path = .vim/bundle/ack.vim
url = git@github.com:mileszs/ack.vim.git

1
.vim/bundle/ack.vim Submodule

Submodule .vim/bundle/ack.vim added at a16a9b63eb

1
.vim/bundle/fzf.vim Submodule

Submodule .vim/bundle/fzf.vim added at f31a2925fe

View File

@@ -0,0 +1,3 @@
setlocal expandtab
setlocal softtabstop=4
setlocal shiftwidth=4

15
.vimrc
View File

@@ -50,6 +50,21 @@ map <C-n> :NERDTreeToggle<CR>
set tags=./tags,../tags,../../tags,../../../tags
let g:easytags_dynamic_files = 1
" FZF
set rtp+=/usr/local/opt/fzf
nmap <C-p> :Files<CR>
" Ack
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
nmap <Leader>a :Ack!<Space>
" quickfix
nmap <Leader>c :cclose<CR>
nmap <Leader>C :copen<CR>
" merlin
let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
execute "set rtp+=" . g:opamshare . "/merlin/vim"