浏览代码

ignore node_modules when searching for filenames inside vim

bananicorn 5 年之前
父节点
当前提交
5b8029ffb6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .vimrc

+ 3 - 0
.vimrc

@@ -8,6 +8,8 @@ set packpath+=~/.vim
 "lets vim search for files to open recursively
 "lets vim search for files to open recursively
 "for use with the find command
 "for use with the find command
 set path+=**
 set path+=**
+"Yeah, don't search through node_modules
+set wildignore+=**/node_modules/**
 
 
 "turn off the taskbar in gvim
 "turn off the taskbar in gvim
 set guioptions-=m
 set guioptions-=m
@@ -29,6 +31,7 @@ set wildmenu
 "then tab through the options
 "then tab through the options
 set wildmode=longest:list,full
 set wildmode=longest:list,full
 
 
+
 "NO, I don't want ANSI.
 "NO, I don't want ANSI.
 set fileencodings=utf-8
 set fileencodings=utf-8
 set encoding=utf-8
 set encoding=utf-8