-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
60 lines (47 loc) · 1.44 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
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
Plugin 'vim-scripts/indentpython.vim'
Plugin 'nvie/vim-flake8'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'editorconfig/editorconfig-vim'
Plugin 'psf/black'
" ...
" All of your Plugins must be added before the following line
call vundle#end() " required on linux
filetype plugin indent on " required
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=88 |
\ set colorcolumn=89 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
au BufNewFile,BufRead *.js, *.html, *.css, *.php
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2
" Flagging Unnecessary Whitespace
highlight BadWhitespace ctermbg=red guibg=darkred
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
set encoding=utf-8
let python_highlight_all=1
syntax on
set t_Co=256 " make use of 256 terminal colors
color summerfruit256
" Standard Settings
set nu
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=2
" Runs Black on save
autocmd BufWritePre *.py execute ':Black'