-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
67 lines (54 loc) · 1.15 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
" LOADING Plugs
execute pathogen#infect()
" BACKUP (none)
set nobackup
set noswapfile
" KEYMAP
inoremap jj <ESC>
let mapleader = ","
" FILE TYPES
filetype off
filetype plugin on
" THEME & LAYOUT
set colorcolumn=80
colorscheme spacegray
set term=screen-256color
set number
syntax on
set cursorline
" PERFORMANCE & HISTORY
set hidden
set history=100
" PARENTHESES
set showmatch
" TEXT FORMATTING
filetype indent on
set nowrap
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
set autoindent
let g:spacegray_italicize_comments = 1
" PLUG-IN CONFIGS
" AIRLINE Active
set laststatus=2
let g:airline#extensions#tabline#enabled = 0
" vim-pencil
let g:airline_section_x = '%{PencilMode()}'
augroup pencil
autocmd!
autocmd FileType markdown,mkd call pencil#init()
autocmd FileType text call pencil#init()
augroup END
" NERDTree
map <C-n> :NERDTreeToggle<CR>
" SYNTASTIC
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_loc_list_height = 2
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0