-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
82 lines (65 loc) · 1.64 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
73
74
75
76
77
78
79
80
81
82
set backspace=2
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'altercation/vim-colors-solarized'
Plugin 'plasticboy/vim-markdown'
Plugin 'Glench/Vim-Jinja2-Syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'nvie/vim-flake8'
call vundle#end()
filetype plugin indent on
" airline config
"let g:airline_powerline_fonts=1
let g:airline_theme='simple'
let g:airline_symbols_ascii = 1
let NERDTreeIgnore=['\.pyc$', '\~$']
set number
set ruler
syntax on
set visualbell
set fileencodings=utf8
let g:solarized_termcolors = 256
let g:solarized_termtrans = 1
set background=dark
colorscheme solarized
" Set encoding
set encoding=utf-8
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
" Search Things
set hlsearch
set incsearch
" Backup directory
set backupdir=~/.vim/backup
set directory=~/.vim/backup
set wildignore+=*.pyc,*.pdf,*.bbl,*.aux,*.dvi,*.blg,*.bst
" md, markdown, and mk are markdown and define buffer-local preview
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call MarkdownFormat()
function MarkdownFormat()
set wrap
set wrapmargin=2
set textwidth=72
endfunction
"Python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
au FileType python call PEP8()
function PEP8()
setlocal softtabstop=4
setlocal tabstop=4
setlocal shiftwidth=4
setlocal textwidth=79
setlocal colorcolumn=80
endfunction
" some poweline stuff
set laststatus=2
set fillchars=vert:│ " that's a vertical box-drawing character