-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
49 lines (42 loc) · 1.13 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
" ConEmu 256 colours for Windows
if has("win32")
set termguicolors
set guifont=Consolas:h11:cANSI
set encoding=utf-8
endif
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'bling/vim-airline'
Bundle 'scrooloose/syntastic'
Bundle 'airblade/vim-gitgutter'
Bundle 'kien/ctrlp.vim'
Bundle 'vim-scripts/AnsiEsc.vim.git'
set cindent
set smartindent
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
syntax on
set backspace=indent,eol,start
set hidden
set cursorline
set hlsearch
filetype plugin indent on " required!
set laststatus=2
colorscheme Tomorrow-Night-Bright
let g:airline#extensions#tabline#enabled = 1
let &colorcolumn=join(range(81,81),",")
set listchars=tab:▸\ ,trail:·
set list
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()