You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.9 KiB
87 lines
1.9 KiB
set nocompatible " required
|
|
filetype off " required
|
|
|
|
" set the runtime path to include Vundle and initialize
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
call vundle#begin()
|
|
|
|
" let Vundle manage Vundle, required
|
|
Plugin 'gmarik/Vundle.vim'
|
|
|
|
" all plugins
|
|
Plugin 'vim-scripts/indentpython.vim'
|
|
Plugin 'scrooloose/nerdtree'
|
|
Plugin 'vim-syntastic/syntastic'
|
|
Plugin 'nvie/vim-flake8'
|
|
Plugin 'jnurmine/Zenburn'
|
|
Plugin 'tpope/vim-fugitive'
|
|
Plugin 'morhetz/gruvbox'
|
|
Bundle 'Valloric/YouCompleteMe'
|
|
|
|
" All of your Plugins must be added before the following line
|
|
call vundle#end() " required
|
|
filetype plugin indent on " required
|
|
|
|
" Python
|
|
" Pep8
|
|
au BufNewFile,BufRead *.py
|
|
\ set tabstop=4 |
|
|
\ set softtabstop=4 |
|
|
\ set shiftwidth=4 |
|
|
\ set textwidth=79 |
|
|
\ set colorcolumn=+1 |
|
|
\ set expandtab |
|
|
\ set autoindent |
|
|
\ set fileformat=unix |
|
|
\ highlight ColorColumn ctermbg=lightgrey
|
|
|
|
let python_highlight_all=1
|
|
|
|
" reStructuredText
|
|
au BufRead *.rst
|
|
\ set textwidth=79 |
|
|
\ set colorcolumn=+1 |
|
|
\ set fileformat=unix |
|
|
\ highlight ColorColumn ctermbg=lightgrey
|
|
|
|
",*.pp,*.epp
|
|
au BufRead *.yaml,*.yml
|
|
\ set tabstop=2 |
|
|
\ set softtabstop=2 |
|
|
\ set shiftwidth=2 |
|
|
\ set textwidth=79 |
|
|
\ set colorcolumn=+1 |
|
|
\ set expandtab |
|
|
\ set autoindent |
|
|
\ set fileformat=unix |
|
|
\ highlight ColorColumn ctermbg=lightgrey
|
|
|
|
"" Whitespace Highlighting
|
|
au BufRead,BufNewFile *.py,*.pyw,*.sh,*.html,*.sh,*.pp match ErrorMsg /\s\+$/
|
|
|
|
" ignore files in NERDTree
|
|
let NERDTreeIgnore=['\.pyc$', '\~$']
|
|
|
|
set nu!
|
|
set tabstop=2
|
|
set expandtab
|
|
set encoding=utf-8
|
|
syntax on
|
|
colorscheme zenburn
|
|
" colorscheme gruvbox
|
|
" colorscheme desert
|
|
|
|
|
|
map <C-G> :set hlsearch<CR>
|
|
map <C-F> :set nohlsearch<CR>
|
|
map <C-N> :NERDTree<CR>
|
|
|
|
" split navigations
|
|
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>
|
|
|
|
" split zoom
|
|
nnoremap Zz <c-w>_\|<c-w>\|
|
|
nnoremap Zo <c-w>=
|
|
|