We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7a992e commit bc2fc83Copy full SHA for bc2fc83
plugins.vim
@@ -150,12 +150,15 @@ let g:airline_powerline_fonts=1
150
" CtrlP
151
" ---------------
152
let g:ctrlp_working_path_mode = 'rc'
153
-let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
154
- \ --ignore .git
155
- \ --ignore .svn
156
- \ --ignore .hg
157
- \ --ignore .DS_Store
158
- \ -g ""'
+if executable('ag')
+ let g:ctrlp_user_command = '[[ $PWD == $HOME ]] && echo "Blocked in $HOME!" ||
+ \ ag %s -i --nocolor --nogroup --hidden
+ \ --ignore .git
+ \ --ignore .svn
+ \ --ignore .hg
159
+ \ --ignore .DS_Store
160
+ \ -g ""'
161
+endif
162
let g:ctrlp_prompt_mappings = {
163
\ 'AcceptSelection("h")': ['<c-x>', '<c-s>'],
164
\ 'AcceptSelection("t")': ['<c-t>', '<c-cr>'],
0 commit comments