-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
61 lines (50 loc) · 1.27 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
call pathogen#infect()
call pathogen#helptags()
syntax on
filetype indent plugin on
set noesckeys
set foldmethod=indent
set foldlevel=99
set expandtab
set tabstop=4
set shiftwidth=4
set hlsearch
set backspace=indent,eol,start
set ruler
set number
set wildignore+=*.pyc
set nowrapscan
inoremap jj <Esc>
nnoremap <F5> :buffers<CR>:buffer<Space>
nnoremap <F4> :NERDTreeToggle<CR>
nnoremap <Backspace> :b<Space>#<CR>
nnoremap <Space> za
nnoremap <C-L> zz
let g:syntastic_enable_signs=1
let g:netrw_liststyle=3
let delimitMate_matchpairs = "(:),[:],{:}"
let JSHintUpdateWriteOnly=1
python << EOF
import os
import sys
import vim
for p in sys.path:
if os.path.isdir(p):
vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
EOF
set wildignore+=*/project/assets/*
set t_Co=256
set background=dark
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_auto_colors = 0
let g:indent_guides_start_level = 1
let g:indent_guides_guide_size = 1
" Plugin options
let g:ctrlp_show_hidden = 1
" Run vim-flake8 after every save
autocmd BufWritePost *.py call Flake8()
" Highlight indents
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=0
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=0
" Resize windows when terminal is resized
autocmd VimResized * :wincmd =