Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " required
- filetype off " required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'gmarik/Vundle.vim'
- " add all your plugins here (note older versions of Vundle
- " used Bundle instead of Plugin)
- Plugin 'tmhedberg/SimpylFold'
- Plugin 'vim-scripts/indentpython.vim'
- Plugin 'Valloric/YouCompleteMe'
- Plugin 'vim-syntastic/syntastic'
- Plugin 'nvie/vim-flake8'
- Plugin 'jnurmine/Zenburn'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'scrooloose/nerdtree'
- Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- nnoremap <C-J> <C-W><C-J>
- nnoremap <C-K> <C-W><C-K>
- nnoremap <C-L> <C-W><C-L>
- nnoremap <C-H> <C-W><C-H>
- " python specific vim config for text formatting
- au BufNewFile,BufRead *.py
- \ set tabstop=4 |
- \ set softtabstop=4 |
- \ set shiftwidth=4 |
- \ set textwidth=79 |
- \ set expandtab |
- \ set autoindent |
- \ set fileformat=unix
- " flag unnecessary whitespace with red
- highlight BadWhitespace ctermbg=red guibg=darkred
- au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
- " set encoding
- set encoding=utf-8
- let g:ycm_autoclose_preview_window_after_completion=1
- "python with virtualenv support
- py3 << EOF
- import os
- import sys
- import vim
- if 'VIRTUAL_ENV' in os.environ:
- project_base_dir = os.environ['VIRTUAL_ENV']
- sys.path.insert(0, project_base_dir)
- activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
- exec(compile(open(activate_this, "rb").read(), activate_this, "exec"), dict(__file__=activate_this))
- EOF
- let python_highlight_all=1
- syntax on
- if has('gui_running')
- set background=dark
- colorscheme solarized
- else
- colorscheme zenburn
- endif
- call togglebg#map("<F5>")
- map <C-n> :NERDTreeToggle<CR>
- set nu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement