Skip to content

Commit

Permalink
move python specific restriction from vimrc to vimrc.d
Browse files Browse the repository at this point in the history
  • Loading branch information
satyrius committed Oct 22, 2013
1 parent d37e974 commit 70df47f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ nmap <Space> :set invhls<cr>:set hls?<cr>
" COMMAND-LINE COMPLETION {{{

" Ignore certain types of files on completion
set wildignore+=*.swp,*.pyc,.git
set wildignore+=.noseids,.ropeproject
set wildignore+=*.swp,.git

" Use menu to show command-line completion (in 'full' case)
set wildmenu
Expand Down Expand Up @@ -205,7 +204,7 @@ nmap <silent> <Leader>e :BufExplorer<CR>
" A tree explorer plugin for vim.
Bundle 'scrooloose/nerdtree'
let NERDTreeIgnore=['\.swp$', '\.pyc$']
let NERDTreeIgnore=['\.swp$']
nmap <silent> <Leader>t :NERDTreeToggle<CR>
" Supertab is a vim plugin which allows you to use <Tab> for all your insert
Expand Down
7 changes: 7 additions & 0 deletions vimrc.d/python.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
" PEP8 line length requrement is 79 chars
autocmd FileType python setlocal colorcolumn=80

" Python specific disables for file name completion
set wildignore+=*.pyc,.noseids,.ropeproject

" Do not show *.pyc files in the tree
let NERDTreeIgnore+=['\.pyc$']

Bundle 'python.vim'

" Enhanced version of the python syntax highlighting script
Expand Down

0 comments on commit 70df47f

Please sign in to comment.