-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
93 lines (79 loc) · 2.64 KB
/
vimrc
File metadata and controls
93 lines (79 loc) · 2.64 KB
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
89
90
91
92
93
execute pathogen#infect()
syntax on
filetype plugin indent on
" ish I love
set number
set showcmd
set cursorline
set cursorcolumn
set showmatch
" set binary noeol
set cc=80
set tw=80
set ruler
" Powerline
" http://choorucode.com/2013/02/17/how-to-install-and-use-vim-powerline-plugin-for-vim/
set t_Co=256
let g:Powerline_symbols = "fancy"
" Nerdcommenter
" https://github.com/scrooloose/nerdcommenter
filetype plugin on
" syntastic
" https://github.com/scrooloose/syntastic#3-recommended-settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" vim-markdown
" https://github.com/tpope/vim-markdown
"" autocmd BufNewFile,BufReadPost *.md set filetype=markdown
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
" solarized
" https://github.com/altercation/vim-colors-solarized
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
" taaaaabs - soft tabs, two spaces
" http://vim.wikia.com/wiki/Indenting_source_code
" we do this below with indent-guides, yo.
" set expandtab
" set shiftwidth=2
" set softtabstop=2
" vim-indent-guides
" https://github.com/nathanaelkane/vim-indent-guides
set ts=2 sw=2 et
let g:indent_guides_start_level = 2
let g:indent_guides_auto_colors = 0
"autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
"autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
if 'dark' == &background
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=gray ctermbg=0
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=236
else
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=gray ctermbg=0
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=0
endif
" http://stackoverflow.com/questions/2561418/how-to-comment-out-a-block-of-python-code-in-vim
vnoremap # :s#^#\##<cr>
vnoremap -# :s#^\###<cr>
" vim-json
let g:vim_json_warnings = 1
let g:vim_json_syntax_conceal = 0
" dat end of line
" http://stackoverflow.com/questions/1050640/vim-disable-automatic-newline-at-end-of-file
set fileformats+=dos
" big files tho
set maxmempattern=5000
" whitespace identification
" http://vim.wikia.com/wiki/Highlight_unwanted_spaces
highlight ExtraWhitespace ctermbg=red guibg=red
" Show trailing whitespace:
match ExtraWhitespace /\s\+$/
" Show trailing whitespace and spaces before a tab:
match ExtraWhitespace /\s\+$\| \+\ze\t/
" https://vi.stackexchange.com/questions/9753/line-formatting-gq-does-not-correctly-indent-long-list-items
set autoindent