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'
- Plugin 'tmhedberg/SimpylFold'
- Plugin 'vim-scripts/indentpython.vim'
- Bundle 'Valloric/YouCompleteMe'
- Plugin 'vim-syntastic/syntastic'
- Plugin 'nvie/vim-flake8'
- Plugin 'jnurmine/Zenburn'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'scrooloose/nerdtree'
- Plugin 'jistr/vim-nerdtree-tabs'
- Plugin 'kien/ctrlp.vim'
- Plugin 'tpope/vim-fugitive'
- Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
- " add all your plugins here (note older versions of Vundle
- " used Bundle instead of Plugin)
- " ...
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- function SetPythonOptions()
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- set textwidth=79
- set expandtab
- set autoindent
- set fileformat=unix
- endfunction
- " Python specific configs:
- set encoding=utf-8
- set nu
- " Use system clipboard
- set clipboard=unnamed
- "colorscheme solarized
- "set background=dark
- let python_highlight_all=1
- syntax on
- " Enable folding
- set foldmethod=indent
- set foldlevel=99
- " Fold with space
- nnoremap <space> za
- " Show docstring for folded indents
- let g:SimpylFold_docstring_preview=1
- au BufNewFile,BufRead *.py call SetPythonOptions()
- au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2
- au BufNewFile,BufRead *.js, *.html, *.css set softtabstop=2
- au BufNewFile,BufRead *.js, *.html, *.css set shiftwidth=2
- " Flagging Unnecessary Whitespace
- " au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
- " For you complete me plugin
- let g:ycm_autoclose_preview_window_after_completion=1
- map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement