-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
560 lines (465 loc) · 19.2 KB
/
vimrc
File metadata and controls
560 lines (465 loc) · 19.2 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
set nocompatible " be iMproved
filetype off " required!
" https://github.com/spf13/spf13-vim/issues/90
set t_Co=256
" 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 'VundleVim/Vundle.vim'
""""""""""""""""""""""""""""""""""""""""""""""""
" Jedi vim for python development
" Plugin 'davidhalter/jedi-vim'
" Completion <C-Space>
" Goto assignments <leader>g (typical goto function)
" Goto definitions <leader>d (follow identifier as far as possible, includes imports and statements)
" Show Documentation/Pydoc K (shows a popup with assignments)
" Renaming <leader>r
" Usages <leader>n (shows all the usages of a name)
" Open module, e.g. :Pyimport os (opens the os module)
" Keeping track of the TODO's in a file
Plugin 'vim-scripts/TaskList.vim'
" <leader>t for triggering the TODO list
" Plugin 'uguu-org/vim-matrix-screensaver'
" :Matrix should ideally trigger the metrix screen saver
" Moving around in vim
Plugin 'Lokaltog/vim-easymotion'
" <leader><leader>w -- front word
" <leader><leader>b -- back word
" <leader><leader>j -- front line
" <leader><leader>k -- back line
" Soting python imports .. not a huge fan of this, want to write my own extension
" Plugin 'vim-scripts/sort-python-imports'
" <leader>i -- sort import in the file
" Color scheme
Plugin 'Lokaltog/vim-distinguished'
" Plugin 'cschlueter/vim-mustang'
" Plugin 'godlygeek/csapprox'
" Plugin 'flazz/vim-colorschemes'
" HTML and CSS hi-speed coding
Plugin 'mattn/emmet-vim'
Plugin 'mattn/webapi-vim'
" Fuzzy finder (files, mru, etc)
Plugin 'kien/ctrlp.vim'
" Buffer explorer (for the tabs at the top)
Plugin 'fholgado/minibufexpl.vim'
Plugin 'mileszs/ack.vim'
" o to open (same as enter)
" O to open and close quickfix window
" go to preview file (open but maintain focus on ack.vim results)
" t to open in new tab
" T to open in new tab silently
" h to open in horizontal split
" H to open in horizontal split silently
" v to open in vertical split
" gv to open in vertical split silently
" q to close the quickfix window
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'sjl/gundo.vim'
Plugin 'majutsushi/tagbar'
Plugin 'vim-scripts/AutoTag'
Plugin 'wincent/Command-T'
Plugin 'ghewgill/vim-scmdiff'
Plugin 'tomtom/tcomment_vim'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'itchyny/lightline.vim'
" solidity syntax - smart contract
Plugin 'tomlion/vim-solidity'
" UNUSED Plugins
" Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
" Plugin 'Lokaltog/powerline-fonts'
" Plugin 'klen/python-mode'
" Plugin 'scrooloose/syntastic'
" Plugin 'msanders/snipmate.vim'
" Plugin 'MarcWeber/vim-addon-mw-utils'
" Plugin 'tomtom/tlib_vim'
" Plugin 'garbas/vim-snipmate'
" Plugin 'honza/vim-snippets'
" Plugin 'vim-scripts/EasyGrep'
" Plugin 'jpalardy/vim-slime'
" Plugin 'davidhalter/jedi-vim'
" Plugin 'lrvick/Conque-Shell'
" Plugin 'sjbach/lusty'
" Plugin 'mattn/gist-vim'
" Plugin 'klen/python-mode'
" Plugin 'uguu-org/vim-matrix-screensaver'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set history=1000 " lines of history VIM has to remember
set pastetoggle=<F3> " Press F3 for toggle paste mode
set wildignore=*.swp,*.bak,*.pyc,*.class " Ignore some file
set autowrite " auto read when a file is changed from outside
set cmdheight=1 " Explicitly set the height of the command line
set number " Display line numbers
set relativenumber " Display line numbers
set numberwidth=1 " using only 1 col (and 1 space) while possible
set colorcolumn=80 " Mark column
set cmdheight=1 " Explicitly set the height of the command line
set title " show title in console title bar
set wildmenu " Menu completion in command mode on <Tab>
set wildmode=list:longest,full " com-line completion <tab> (file,help,options)
set nowrap " no line wrapping;
set guioptions+=b " add a horizontal scrollbar to the bottom
set enc=utf-8 " UTF-8 as the default buffer encoding
set laststatus=2 " Always show status line, even for one window
set scrolloff=3 " Scroll when cursor is within 3 char of top/bot
set shiftround " Round indent to multiple of 'shiftwidth' for > and < commands
set showcmd " Show (par) commands (or selection size in Visual mode) on status
set t_RV= " Don't request terminal version str (for xterm)
set so=7 "Set 7 lines to curors when moving vertical
set ruler "Always show current position
set hid "Change buffer - without saving
set cursorline
set hidden
set clipboard=unnamed
set mouse=a
set whichwrap+=<,>,h,l
set tm=500
set backspace=eol,start,indent " Set backspace config
set nolazyredraw "Don't redraw while executing macros
set magic "Set magic on, for regular expressions
set showmatch "Show matching bracets when text indicator is over them
set noerrorbells visualbell t_vb= "No sound on errors
autocmd GUIEnter * set visualbell t_vb=
" To highlight what's under the cursor
autocmd CursorMoved * exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))
" keystrokes
set whichwrap=h,l,~,[,] " h,l wrap bet lines, cursor keys wrap in insertion mode
set completeopt=menuone,longest,preview " Set auto-complete form
"Search options
set incsearch " show 'best match so far' as you type
set hlsearch " highlight the items found by the search
set ignorecase " ignores case of letters on searches
set smartcase " Override 'ignore-case' if search pattern has upper case chars
" Set the leader key to a comma (,)
let mapleader=","
let g:mapleader=","
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => My custom commands
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" This can be done with *
"nmap <leader>s /<C-r><C-w><Enter> " Lookup the term under the cursor
" Shorthand for replacing
nnoremap <leader>r :%s/\<<C-r><C-w>\>//g<Left><Left>
nmap <leader>v :vsplit<cr> " Vertical split window
nmap <leader>s :split<cr> " Horizontal split window
map <leader>ea :e! ~/.bash_aliases<cr> " Fast editing of .bash_aliases
map <leader>eb :e! ~/.bashrc<cr> " Fast editing of .bashrc
map <leader>es :e! ~/.ssh/config<cr> " Fast editing of .ssh hosts
map <leader>ev :e! ~/.vimrc<cr> " Fast editing of .vimrc
" Show full path of the current file
map <leader>p :echo expand('%:p')<cr>
" Mapping to move between windows
nmap <silent> <leader>k :wincmd k<CR>
nmap <silent> <leader>j :wincmd j<CR>
nmap <silent> <leader>h :wincmd h<CR>
nmap <silent> <leader>l :wincmd l<CR>
" resize current buffer by +/- 5
nnoremap <leader>1 :resize +5<cr>
nnoremap <leader>2 :resize -5<cr>
nnoremap <leader>3 :vertical resize +5<cr>
nnoremap <leader>4 :vertical resize -5<cr>
" TODO: NO idea what this does .. figure out
map <F5> :wall!<CR>:!sbcl --load foo.cl<CR><CR>
" When vimrc is edited, reload it: https://github.com/powerline/powerline/issues/213
autocmd! bufwritepost vimrc nested source ~/.vimrc
" Close buffer with :BD
command! BD bp | sp | bn | bd
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set shell=/bin/bash
set guioptions-=T
let g:CSApprox_attr_map = { 'bold' : 'bold', 'italic' : '', 'sp' : '' }
set gfn=Liberation\ Mono\ 10
set encoding=utf8
syntax enable "Enable syntax hl
set background=light
"let g:solarized_termcolors=256
" colorscheme solarized
" colorscheme kolor
" colorscheme mustang
colorscheme distinguished
try
lang en_US
catch
endtry
" GUI is running or is about to start. Maximize gvim window.
if has("gui_running")
set lines=43
set co=87
set fu
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=80
set smarttab
set expandtab
set lbr
set tw=500
set ai "Auto indent
set si "Smart indet
set wrap "Wrap lines
" http://stackoverflow.com/questions/235439/vim-80-column-layout-concerns
"autocmd FileType python " Prepend this to make them python specific checks
highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
match OverLength /\%81v.\+/
" In insert mode, you can paste from clipboard using CTRL+v
inoremap <C-v> <ESC>:set paste<CR>"+gp<ESC>:set nopaste<ENTER>i<RIGHT>
autocmd BufEnter * silent! lcd %:p:h " Set def env based on current edit files
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nobackup " Turn backup off
set nowb
set noswapfile
set undodir=~/.vim/undodir
set undofile
set undolevels=1000 "max lines changed that can be undone
set undoreload=10000 "max lines saved for undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Moving around, tabs and buffers
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" nnoremap <CR> :nohlsearch<CR>/<BS> "GRB:clear search buffer when hitting return
" map <silent> <leader><cr> :nohlsearch<cr>
" map <leader>ba :1,300 bd!<cr> " Close all the buffers
" map <leader>bd :Bclose<cr> " Close the current buffer
" map <leader>cd :cd %:p:h<cr> " Switch to the directory of the open buffer
" map <C-right> :bn<CR> " Moving tab using CTRL+ the arrows
" map <C-left> :bp<CR>
nnoremap <leader>za :set foldmethod=indent<cr>
nnoremap <leader>zz :set foldlevel=99<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Language specific settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""
" Python
" Execute Python file being edited with <Shift> + e:
nnoremap E w:<CR>:!python % <CR>
autocmd FileType python :setlocal spell spelllang=en_us
autocmd FileType python hi SpellBad term=reverse ctermfg=white ctermbg=darkred guifg=#ffffff guibg=#7f0000 gui=underline
autocmd FileType python hi SpellCap guifg=#ffffff guibg=#7f007f
autocmd FileType python hi SpellRare guifg=#ffffff guibg=#00007f gui=underline
autocmd FileType python hi SpellLocal term=reverse ctermfg=black ctermbg=darkgreen guifg=#ffffff guibg=#7f0000 gui=underline
" Search and error color highlights
autocmd FileType python hi Search guifg=#ffffff guibg=#0000ff gui=none ctermfg=white ctermbg=darkblue
autocmd FileType python hi IncSearch guifg=#ffffff guibg=#8888ff gui=none ctermfg=white
autocmd FileType python highlight SpellBad guifg=#ffffff guibg=#8888ff gui=none ctermfg=black ctermbg=darkred
""""""""""""
" Markdown
au BufEnter,Bufread *.mkd,*.md,*.mdown,*.markdown set tw=0 " markdown
autocmd BufNewFile,BufRead *.mkd,*.md,*.mdown,*.markdown set spell
""""""""""""
" html
" http://www.brankovukelic.com/post/2091037293/turn-vim-into-powerful-javascript-editor"
" HTML (tab width, no wrapping)
autocmd FileType html set sw=4
autocmd FileType html set ts=4
autocmd FileType html set sts=4
autocmd FileType html set textwidth=0
" XHTML (tab width, no wrapping)
autocmd FileType xhtml set sw=4
autocmd FileType xhtml set ts=4
autocmd FileType xhtml set sts=4
autocmd FileType xhtml set textwidth=0
""""""""""""
" CSS
" CSS (tab width, wrap at 79th char)
autocmd FileType css set sw=4
autocmd FileType css set ts=4
autocmd FileType css set sts=4
""""""""""""
" JS
autocmd FileType javascript set sw=2
autocmd FileType javascript set ts=2
autocmd FileType javascript set sts=2
""""""""""""
" General
autocmd Syntax c,cpp,vim,xml,html,xhtml,js,php,py,python set foldmethod=manual
autocmd Syntax c,cpp,vim,xml,html,xhtml,perl normal zR
" Remove trailing whitespace
" Clear out trailing space
"http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace
autocmd BufWritePre *.c :%s/\s\+$//e
autocmd BufWritePre *.cpp :%s/\s\+$//e
autocmd BufWritePre *.c++ :%s/\s\+$//e
autocmd BufWritePre *.h :%s/\s\+$//e
autocmd BufWritePre *.java :%s/\s\+$//e
autocmd BufWritePre *.php :%s/\s\+$//e
autocmd BufWritePre *.pl :%s/\s\+$//e
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.html :%s/\s\+$//e
autocmd BufWritePre *.css :%s/\s\+$//e
autocmd BufWritePre *.scss :%s/\s\+$//e
autocmd BufWritePre *.js :%s/\s\+$//e
autocmd BufWritePre *.md :%s/\s\+$//e
" Enable omni completion.
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown,ctp set omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php,ctp set omnifunc=phpcomplete#CompletePHP
autocmd FileType vim set omnifunc=syntaxcomplete#Complete
" Autoclose quickfix windows when quit
" http://stackoverflow.com/questions/7476126/how-to-automatically-close-the-quick-fix-window-when-leaving-a-file
aug QFClose
au!
au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&buftype") == "quickfix"|q|endif
aug END
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugin Settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" CommandT shortcuts
map <leader>f :CommandT<CR>
map <leader>ff :CommandT ~/projects/jawbone/pkhanduri_srv<CR>
map <leader>fp :CommandT ~/projects<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sort Python Imports
map <leader>i :PyFixImports<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" MinibufferExp
" Taken from http://dotfiles.org/~joaoTrindade/.vimrc
" Show the miniBufExplorer from the start
"let g:miniBufExplorerMoreThanOne = 0
" Not using because I don't use the vertival window
" Use a vertical windows
"let g:miniBufExplVSplit = 5
"let g:miniBufExplSplitBelow=1 "Put the miniBufExplorer windows at the right
"let g:miniBufExplMaxSize = 15 "Maximum size of the mini buffer explorer window
"let g:miniBufExplMapWindowNavArrows = 1
"let g:miniBufExplMapCTabSwitchBufs = 1
"let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplTabWrap = 1 " show complete (no broken on two lines)
let g:miniBufExplModSelTarget = 1 " Set to 1 if using other explorer (TagList)
let g:miniBufExplUseSingleClick = 1 " single click on tabs rather than double
hi MBENormal guifg=LightBlue " NOT CHANGED and NOT VISIBLE.
hi MBEChanged guifg=Red " HAVE CHANGED and NOT VISIBLE
hi MBEVisibleNormal term=bold cterm=bold gui=bold guifg=Green " NOT CHANGED and VISIBLE
hi MBEVisibleChanged term=bold cterm=bold gui=bold guifg=Green " CHANGED and VISIBLE
let g:bufExplorerSortBy = "name"
nnoremap <leader>/ :MBEbn<cr>
nnoremap <leader>. :MBEbp<cr>
nnoremap <leader>` :MBEClose<cr>
autocmd BufRead,BufNew :call UMiniBufExplorer
" Taken from http://dev.gentoo.org/~bass/configs/vimrc.html
" Adapt the status line according to the window
if has("autocmd")
au FileType qf
\ if &buftype == "quickfix" |
\ setlocal statusline=%2*%-3.3n%0* |
\ setlocal statusline+=\ \[Compiler\ Messages\] |
\ setlocal statusline+=%=%2*\ %<%P |
\ endif
fun! FixMiniBufExplorerTitle()
if "-MiniBufExplorer-" == bufname("%")
setlocal statusline=%2*%-3.3n%0*
setlocal statusline+=\[Buffers\]
setlocal statusline+=%=%2*\ %<%P
endif
endfun
au BufWinEnter *
\ let oldwinnr=winnr() |
\ windo call FixMiniBufExplorerTitle() |
\ exec oldwinnr . " wincmd w"
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" TagBar
let g:tagbar_usearrows=1
let g:tagbar_width=30
let g:tagbar_singleclick=1
" Open Tagbar in Right side
nnoremap <leader>; :TagbarToggle<CR>
" Need to run "ctags -R ."
set tags=tags;/
" For autoload tags Check out: http://andrewradev.com/2011/06/08/vim-and-ctags/
autocmd BufWritePost *
\ if filereadable('tags') |
\ call system('ctags -a '.expand('%')) |
\ endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" NERDTree
" Enable this for make NERDTree load every opening files
" autocmd VimEnter * NERDTree " Make Always Load NERDTree every opening files
" autocmd VimEnter * wincmd p " Automatically go to buffer every time open files
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
" Close all open buffers on entering a window if the only
" buffer that's left is the NERDTree buffer
function! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName")
if bufwinnr(t:NERDTreeBufName) != -1
if winnr("$") == 1
q
endif
endif
endif
endfunction
nnoremap <leader>tr :NERDTreeToggle ~/projects/affirm/all-the-things<CR>
let g:NERDTreeShowBookmarks=1
let g:NERDTreeMouseMode=3
let g:NERDTreeWinSize=30
let NERDTreeIgnore = ['\.pyc$']
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Syntastic
" let g:syntastic_python_checkers=['pylint', 'pyflakes', 'pep8', 'flake8']
"let g:syntastic_javascript_checkers=['jslint']
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Powerline
" https://powerline.readthedocs.org/en/latest/fontpatching.html#font-patching
"set guifont=Menlo\ Bold\ for\ Powerline
set guifont=Menlo\ Regular\ for\ Powerline
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Easymotion
" hi EasyMotionTarget ctermbg=none ctermfg=green
" let g:EasyMotion_leader_key = '<Leader>'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Snipmate
" let g:snipMate = {}
" let g:snipMate.scope_aliases = {}
" let g:snipMate.scope_aliases['python'] = 'python,django'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Slime
" let g:slime_target = 'tmux'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Conque
" nnoremap <leader>cb :ConqueTerm bash<cr>
" nnoremap <leader>cs :ConqueTerm python<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Jedi
" let g:jedi#goto_assignments_command = "<leader>g"
" let g:jedi#goto_definitions_command = "<leader>d"
" let g:jedi#documentation_command = "K"
" let g:jedi#usages_command = "<leader>u"
" let g:jedi#completions_command = "<C-Space>"
" let g:jedi#rename_command = "<leader>r"
" let g:jedi#show_call_signatures = "1"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Emmet-Vim shortcuts
let g:user_emmet_leader_key='<leader>m'
let g:user_emmet_settings=webapi#json#decode(join(readfile(expand('~/.snippets.json')), "\n"))