-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
99 lines (76 loc) · 2.49 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
89
90
91
92
93
94
95
96
97
98
99
" 01/12/2012
set nocompatible
" initialize vim-plug with default plugin directory ('~/.vim/plugged')
call plug#begin()
" buffer management (via vim-scripts repo)
Plug 'vim-scripts/bufexplorer.zip'
" fancy status bar plugin
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" general purpose coding plugins
Plug 'tpope/vim-surround'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-characterize'
" " a more recent fork of msanders/snipmate.vim (and its dependencies)
" Plug 'MarcWeber/vim-addon-mw-utils'
" Plug 'tomtom/tlib_vim'
" Plug 'garbas/vim-snipmate'
" Plug 'honza/vim-snippets'
" markup plugins
Plug 'tpope/vim-haml'
" Ruby on Rails plugins
Plug 'tpope/vim-rails'
" git plugins
Plug 'tpope/vim-git'
Plug 'tpope/vim-fugitive'
" colorscheme plugins
Plug 'altercation/vim-colors-solarized'
call plug#end()
" tabs are evil
set et
" status bar is always visible
set laststatus=2
" enable search highlighting
set hlsearch
" show tab characters and trailing spaces by default
set listchars=trail:·,tab:».
set list
set printoptions=paper:letter
autocmd FileType svn setlocal tw=0
" autocmd FileType diff colorscheme darkspectrum
autocmd FileType conf setlocal tw=0 ts=2 sw=2
autocmd FileType cucumber setlocal tw=0 ts=2 sw=2
autocmd FileType diff setlocal nowrap tw=0
autocmd FileType gitcommit setlocal tw=72 ts=2 sw=2
autocmd FileType haml setlocal sw=2
autocmd FileType mkd setlocal ts=4 sw=4
autocmd FileType markdown setlocal ts=4 sw=4
autocmd FileType php setlocal tw=0 ts=2 sw=2
autocmd FileType python setlocal ts=4 sw=4
autocmd FileType ruby setlocal tw=0 ts=2 sw=2
autocmd FileType sh setlocal tw=0 ts=2 sw=2
autocmd FileType sql setlocal tw=0 ts=4 sw=4
autocmd FileType vundle setlocal nu
autocmd FileType yaml setlocal ai si sw=2
autocmd BufRead,BufNewFile *.json setlocal filetype=json ts=2 sw=2
" filetype plugin indent on
" when folding is enabled, don't start with one mega-fold
set foldlevelstart=1
" 01/12/2012 temporarily disable
" helptags ~/.vim/doc
" configure bufexplorer
let g:bufExplorerDetailedHelp=1
let g:bufExplorerShowRelativePath=1
let g:bufExplorerSplitOutPathName=0
" configure vim-airline
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline#extensions#branch#enabled=0
let g:airline_section_b = '⎇ %{strpart(FugitiveHead(), 0, 9)}'
let g:airline_theme='solarized'
" 11/08/2013 distilled from vim-unimpaired
nnoremap <silent> [q :cprevious
nnoremap <silent> ]q :cnext
nnoremap <silent> [Q :cfirst
nnoremap <silent> ]Q :clast