1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Ignore .pyc files in file tree

This commit is contained in:
Michiel Scholten
2015-01-12 07:41:10 +01:00
parent c32353c273
commit 6cd28cd726

1
.vimrc
View File

@@ -31,6 +31,7 @@ Plugin 'jnurmine/Zenburn.git'
" Quick file system tree, mapped to Ctrl+n for quick toggle " Quick file system tree, mapped to Ctrl+n for quick toggle
Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/nerdtree'
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore = ['\.pyc$']
" close vim if the only window left open is a NERDTree " close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif