-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·88 lines (70 loc) · 2.43 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
83
84
85
86
87
88
packloadall
silent! helptags ALL
"turn off vi compatiblity so that powerline will work
set nocompatible
"turn on syntax highlighting
syntax enable
"explictly set 256-color terminal mode
set t_Co=256
"use the dark solarized colorscheme
set background=dark
colorscheme solarized
"auto enable plugins and indent scripts based on filetype
filetype plugin indent on
"how many characters widths are indented with >> or autoindent
set shiftwidth=4
"how many characters widths tabs are displayed as
set tabstop=4
"how many characters widths are indented when hitting tab in insert mode
set softtabstop=4
"hitting tab will insert spaces
"set expandtab
"always show status line
set laststatus=2
"THE FOLLOWING RULES ARE SUBSUMED BY POWERLINE
"shows last cmd or current cmd info in status line
set showcmd
"shows line and column number and percentage thru file in status line
set ruler
"shows line numbers inline
set number
"THE PREVIOUS RULES ARE SUBSUMED BY POWERLINE
"in insert mode allow backspace to operate over start of lines, autoindents,
"and end of lines
set backspace=start,indent,eol
"wrap searchs around end of file
set wrapscan
"highlight search matches as the search query is being entered
set incsearch
"automatically write a buffer when switching buffers
set autowrite
"Force these spacing settings based on file type
autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType scss setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType less setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType cpp setlocal ts=2 sts=2 sw=2 expandtab
"Syntastic
" let g:syntastic_echo_current_error=1
" let g:syntastic_enable_signs=1
" let g:syntastic_enable_balloons=0
" let g:syntastic_loc_list_height=5
" let g:syntastic_enable_highlighting=1
" let g:syntastic_auto_loc_list=1
" let g:syntastic_check_on_open=1
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_javascript_checkers=['eslint']
" let g:syntastic_check_on_wq=0
"make xterm title inherit from vim
set title
"make iterm title inherit from vim
set t_ts=]1;
set t_fs=
"turn on color column at column 81 (1 past the 80 col limit)
set colorcolumn=81
"use system clipboard by default
set clipboard=unnamed