-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (42 loc) · 1.23 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
" Make indentation bearable
set tabstop=4
set shiftwidth=4
set expandtab
set backspace=indent,eol,start
set autoindent
" Fix Line Numbers
set relativenumber
set number
filetype indent on
filetype plugin on
" Search fixups: highlighting and case insensitivity
set ic
set hls
" Make vim pretty
syntax enable
set background=dark
colorscheme solarized
highlight ExtraWhitespace ctermbg=red ctermfg=white guibg=#592929
call matchadd('ExtraWhitespace', '\s\+$', 11)
highlight OverLength80 ctermbg=green ctermfg=white guibg=#592929
call matchadd('OverLength80', '\%>80v.\+')
highlight OverLength100 ctermbg=Magenta ctermfg=white guibg=#592929
call matchadd('OverLength100', '\%>100v.\+')
highlight OverLength120 ctermbg=red ctermfg=white guibg=#592929
call matchadd('OverLength120', '\%>120v.\+')
" Extra highlighting to make us look 1337
set cursorline
set cursorcolumn
" Tab switching that doesn't make want to shoot in face
nnoremap <Tab> <c-w>w
nnoremap <bs> <c-w>W
let mapleader = ","
" Flake8 on exit
autocmd BufWritePost *.py call Flake8()
" Vim-plug shit
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/ctrlpvim/ctrlp.vim.git'
Plug 'altercation/vim-colors-solarized'
Plug 'nvie/vim-flake8'
Plug 'scrooloose/nerdcommenter'
call plug#end()