From c0865eb3b85e3657c4f552551fc35e3943a164cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=9A=E5=92=94?= Date: Sun, 17 Aug 2014 14:25:50 +0800 Subject: [PATCH] Fixed regex of `NERDTreeIgnore`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NERDTree does'nt show directory which name containing '.git' '.svn' or '.hg'(e.g. 'cupen.github', 'a.svna'). The regx of `NERDTreeIgnore` was‘nt working right,I fixed it.. --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index d4b6eb1d7..80462d0b4 100644 --- a/.vimrc +++ b/.vimrc @@ -504,7 +504,7 @@ nmap nt :NERDTreeFind let NERDTreeShowBookmarks=1 - let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr'] + let NERDTreeIgnore=['\.py[cd]$', '\~$', '\.swo$', '\.swp$', '^\.git$', '^\.hg$', '^\.svn$', '\.bzr$'] let NERDTreeChDirMode=0 let NERDTreeQuitOnOpen=1 let NERDTreeMouseMode=2