Skip to content

Commit

Permalink
added support for ag (the silver surfer)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamykaze committed Oct 11, 2017
1 parent 79cd714 commit 2d10fdd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions _ignore
@@ -0,0 +1,10 @@
wc
log
.sass-cache
tmp
doc
coverage
public/media
trash
tags
TAGS
17 changes: 11 additions & 6 deletions _vimrc
Expand Up @@ -389,8 +389,9 @@

"## 5b. Emmet ##### {{{2
" adding emmet (http://emmet.io) support
let g:user_emmet_leader_key = '<C-n>'
let g:user_emmet_leader_key = '<s-tab>'
let g:user_emmet_expandabbr_key = '<s-tab><s-tab>'
let g:user_emmet_update_tag = '<s-tab>u'
"let g:user_emmet_togglecomment_key = '<c-_>'
"let g:user_emmet_next_key = '<C-,>'
"let g:user_emmet_prev_key = '<C-;>'
Expand Down Expand Up @@ -954,16 +955,20 @@
"}}}2

"## 8b. Ack mapping ##### {{{2
if executable('ag')
"let g:ackprg = 'ag --vimgrep'
let g:ackprg = 'ag --nogroup --nocolor --column --path-to-ignore ~/.ignore'
endif
let g:ack_autofold_results = 1
let g:ack_autoclose = 1
NeoBundle 'mileszs/ack.vim'
nnoremap <C-A> :Ack!<space>
nnoremap <leader>aa :Ack! <cword><CR>
nnoremap <leader><CR>w :Ack! $VIRTUAL_ENV/src/django-webcube<home><right><right><right><right>
nnoremap <leader><CR>d :Ack! $VIRTUAL_ENV/lib/python2.7/site-packages/django<home><right><right><right><right>
nnoremap <leader><CR>c :Ack! ~/dev/projects/webcube-cloud43/cloud/<home><right><right><right><right>
nnoremap <leader><CR>r :Ack! ~/ref/<home><right><right><right><right>
nnoremap <leader><CR>s :Ack! ~/src/<home><right><right><right><right>
nnoremap <leader><CR>w :Ack! $VIRTUAL_ENV/src/django-webcube<home><right><right><right><right><right>
nnoremap <leader><CR>d :Ack! $VIRTUAL_ENV/lib/python2.7/site-packages/django<home><right><right><right><right><right>
nnoremap <leader><CR>c :Ack! ~/dev/projects/webcube-cloud43/cloud/<home><right><right><right><right><right>
nnoremap <leader><CR>r :Ack! ~/ref/<home><right><right><right><right><right>
nnoremap <leader><CR>s :Ack! ~/src/<home><right><right><right><right><right>
nnoremap <leader><CR>a :Ack! <cword><space>
"}}}2

Expand Down

0 comments on commit 2d10fdd

Please sign in to comment.