aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-06-03 20:52:42 -0400
committerTeddy Wing2014-06-03 20:52:42 -0400
commit0484e8661f0becfe7f43224bb9066a83ea4e3924 (patch)
tree98374c5d79588ed7f5a870d17fc7dc18b3c33067 /vimrc
parent0d89392cdc386c5dc179386d0e51f82bcf24bf7d (diff)
downloaddotvim-0484e8661f0becfe7f43224bb9066a83ea4e3924.tar.bz2
vimrc: ignore "vendor/" in Command-T
I typically don't want to search the vendor directory when I'm working in Ruby projects.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 818168b..99a59e8 100644
--- a/vimrc
+++ b/vimrc
@@ -187,6 +187,10 @@
" 2014.06.02:
" * Change <leader>tx to <leader>td. Typing "tx" is too uncomfortable.
"
+" 2014.06.03:
+" * Ignore "vendor/" directories when searching in Command-T. Makes it
+" easier to search in Ruby projects.
+"
" Pathogen
@@ -320,6 +324,9 @@ endif
" Remap Command-T from <leader>t to <leader>d (BBEdit style)
nnoremap <leader>d :CommandT<cr>
+" Directories & files to ignore during Command-T searches
+let g:CommandTWildIgnore=&wildignore . ",*/vendor/*"
+
" NERDTree
" Alphabetical sort ordering