-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc_vundle
155 lines (116 loc) · 5.52 KB
/
.vimrc_vundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
" Guide to Python and Vim:
" https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/
" Be sure to source (:so ~/.vimrc) before running :PluginInstall
" let mapleader = "\\"
let mapleader = ","
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" ================================================================================
" Vundle
" ================================================================================
" Search plugins with command :PluginSearch!
" List plugins with command :PluginList
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" ================================================================================
" SimpylFold
" ================================================================================
Plugin 'tmhedberg/SimpylFold'
" SimpylFold enable viewing docstrings for folded code
" let g:SimpylFold_docstring_preview=1
" ================================================================================
" IndentPython
" ================================================================================
Plugin 'vim-scripts/indentpython.vim'
" ================================================================================
" YouCompleteMe
" ================================================================================
Plugin 'Valloric/YouCompleteMe'
let g:ycm_server_python_interpreter='python2'
let g:ycm_filetype_specific_completion_to_disable={'javascript': 1}
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
map <leader>d :YcmCompleter GetDoc<CR>
" YouCompleteMe with virtualenv support
py << EOF
import os
import sys
if 'VIRTUAL_ENV' in os.environ:
project_base_dir = os.environ['VIRTUAL_ENV']
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
EOF
" ================================================================================
" Syntastic
" ================================================================================
" Plugin 'scrooloose/syntastic'
" Because Syntastic has annoying messages
" let g:syntastic_quiet_messages = { 'regex': 'F841\|F405\|F401\|F403\|E711\|E712\|E731' }
" ================================================================================
" vim-flake8
" ================================================================================
Plugin 'nvie/vim-flake8'
" ================================================================================
" vim-pydocstring
" ================================================================================
Plugin 'heavenshell/vim-pydocstring'
map <leader>c :Pydocstring<CR>
let g:pydocstring_enable_mapping = 0
" ================================================================================
"
" ================================================================================
Plugin 'timothycrosley/isort' " sort python imports alphabetically and by group
" ================================================================================
" Nerd Tree -- Tree File Viewer
" ================================================================================
Plugin 'scrooloose/nerdtree'
" start nerdtree when vim opens (with or without a file)
" autocmd VimEnter * NERDTree
" autocmd StdinReadPre * let s:std_in=1
" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Ctrl+n toggles nerdtree
map <C-n> :NERDTreeToggle<CR>
" set the active window to 1, which will be the non-tree window
autocmd VimEnter * wincmd l
" close nerdtree if it is the only window open
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" filter out *.pyc files
let NERDTreeIgnore = ['\.pyc$']
" after a re-source, fix syntax matching issues (concealing brackets):
if exists('g:loaded_webdevicons')
call webdevicons#refresh()
endif
" ================================================================================
"
" ================================================================================
Plugin 'scrooloose/nerdcommenter'
" ================================================================================
"
" ================================================================================
Plugin 'Vimjas/vim-python-pep8-indent'
" ================================================================================
"
" ================================================================================
Plugin 'vim-airline/vim-airline'
" ================================================================================
"
" ================================================================================
Plugin 'kien/ctrlp.vim'
" ================================================================================
"
" ================================================================================
Plugin 'ryanoasis/nerd-fonts' " special fonts for tree viewers etc
" ================================================================================
"
" ================================================================================
Plugin 'ryanoasis/vim-devicons' " icons for tree viewers
let g:airline_powerline_fonts=1
" must be set after nerdtree, vim-airline, ctrlp, powerline, denite, unit, lightline.vim,
" vim-startify, vimfiler, flagship
set encoding=utf8
" All of your Plugins must be added before the following line
call vundle#end()
filetype plugin indent on " required