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:
1
.vimrc
1
.vimrc
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user