-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
72 lines (58 loc) · 1.58 KB
/
vimrc
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
set nocompatible
set t_Co=256
colorscheme candycode
"Pathogen load
execute pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
set mouse=a
set shiftround
set laststatus=2
set ruler
set showcmd
set wildmenu
syntax on
set encoding=utf-8
"PowerLine
" source ~/.local/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup
if has("python") && !empty($VIRTUAL_ENV)
python << EOF
import os
import sys
a = os.environ['VIRTUAL_ENV'] + '/bin/activate_this.py'
execfile(a, dict(__file__ = a))
if 'PYTHONPATH' not in os.environ:
os.environ['PYTHONPATH'] = ''
os.environ['PYTHONPATH'] += ":"+os.getcwd()
os.environ['PYTHONPATH'] += ":".join(sys.path)
EOF
endif
" UltiSnips
let g:UltiSnipsSnippetsDir="~/.vim/bundle/ultisnips/UltiSnips"
let g:UltiSnipsSnippetDirectories=["UltiSnips", "snippets", "angular-vim-ultisnips"]
" for dbext
let dbext_default_SQLITE_bin = 'sqlite3'
" Map TagBar to F8
nmap <F8> :TagbarToggle<CR>
" Tab should be 2 spaces in HTML and js
autocmd FileType html
\ setlocal shiftwidth=2 |
\ setlocal tabstop=2 |
\ setlocal softtabstop=2
autocmd FileType js
\ setlocal shiftwidth=2 |
\ setlocal tabstop=2 |
\ setlocal softtabstop=2
autocmd FileType mako
\ setlocal shiftwidth=2 |
\ setlocal tabstop=2 |
\ setlocal softtabstop=2
autocmd FileType css
\ setlocal shiftwidth=2 |
\ setlocal tabstop=2 |
\ setlocal softtabstop=2
" Surround for translation in mako
autocmd FileType mako let g:surround_117="${_(u\"\r\")}"