comparison vim/vimrc @ 140:aec168618b7b

Exclude Python binaries from file listings.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 09 Nov 2013 13:20:50 -0800
parents db9d5fe86723
children 8e555c4986cd
comparison
equal deleted inserted replaced
138:337a1bfbd50a 140:aec168618b7b
124 execute('set directory='.s:vim_home.'/temp') 124 execute('set directory='.s:vim_home.'/temp')
125 125
126 " Better command-line completion, but don't show some 126 " Better command-line completion, but don't show some
127 " stuff we don't care about. 127 " stuff we don't care about.
128 set wildmenu 128 set wildmenu
129 set wildignore+=.DS_Store,Thumbs.db,*.so,*.dll,*.exe 129 set wildignore+=.DS_Store,Thumbs.db,*.so,*.dll,*.exe,*.pyc,*.pyo
130 130
131 " Always display the tab-page line. 131 " Always display the tab-page line.
132 set showtabline=2 132 set showtabline=2
133 133
134 " Set the file-formats. 134 " Set the file-formats.
219 " Ctrl-P should manage the working directory. 219 " Ctrl-P should manage the working directory.
220 let g:ctrlp_working_path_mode = 2 220 let g:ctrlp_working_path_mode = 2
221 221
222 " Ctrl-P should however ignore some stuff. 222 " Ctrl-P should however ignore some stuff.
223 let g:ctrlp_custom_ignore = { 223 let g:ctrlp_custom_ignore = {
224 \ 'dir': '\v[\/](\.git|\.hg|\.svn|venv)$', 224 \ 'dir': '\v[\/](\.git|\.hg|\.svn|venv)$'
225 \ 'file': '\.exe$\|\.so$\|\.dll$|\.pyc$|\.pyo$'
226 \ } 225 \ }
227 226
228 " Make Ctrl-P cache stuff in our temp directory. 227 " Make Ctrl-P cache stuff in our temp directory.
229 let g:ctrlp_cache_dir = s:vim_home.'/cache' 228 let g:ctrlp_cache_dir = s:vim_home.'/cache'
230 229