-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.vimrc
20 lines (11 loc) · 876 Bytes
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" vim: sw=2:
let prjPath = expand("%:p:h")
if (filereadable("Session.vim"))
:source Session.vim
endif
set cpt+=ksrc/**/*.java,ksrc/main/webapp/js/app/**/*.js,ktools/**/*
set path=$PWD,$PWD/src/**,$PWD/tools**,$PWD/gradle/**,$PWD/extra/**
set wildignore+=.git/**,target/**,build/**,test/**,.gradle/**,.settings/**,.metadata/**,.springBeans/**/,src/**/compressed.js,src/**/compressed.css
nnoremap <silent><leader>w :Ack! --ignore-dir='target' --ignore-dir='build' --ignore-dir='test' --ignore='compressed.*' --ignore='*[.-]min.*' -w <C-r><C-w> <CR>
nnoremap <silent><leader>g :Ack! --ignore-dir='target' --ignore-dir='build' --ignore-dir='test' --ignore='compressed.*' --ignore='*[.-]min.*' -w <C-r>" <CR>
cnoreabbrev gr Ack! --ignore-dir='target' --ignore-dir='build' --ignore-dir='test' --ignore='compressed.*' --ignore='*[.-]min.*' ''<left><C-r>=EatLastChar()<CR>