-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
167 lines (139 loc) · 3.34 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
" vim: fdm=marker noet
set nocompatible
" Vundle {{{1
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
" Editing {{{2
Plugin 'godlygeek/tabular'
Plugin 'jaxbot/semantic-highlight.vim'
Plugin 'justinmk/vim-sneak'
Plugin 'sfiera/vim-emacsmodeline'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-sleuth'
Plugin 'tpope/vim-speeddating'
Plugin 'tpope/vim-surround'
" Tools {{{2
Plugin 'airblade/vim-gitgutter'
Plugin 'airblade/vim-rooter'
Plugin 'gregsexton/gitv'
Plugin 'kien/ctrlp.vim'
Plugin 'ludovicchabant/vim-lawrencium'
Plugin 'majutsushi/tagbar'
Plugin 'mattn/gist-vim'
Plugin 'mattn/webapi-vim'
Plugin 'mileszs/ack.vim'
Plugin 'rking/ag.vim'
Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-fugitive'
" Colors {{{2
Plugin 'altercation/vim-colors-solarized'
Plugin 'biogoo.vim'
Plugin 'chriskempson/base16-vim'
Plugin 'darkspectrum'
Plugin 'fuqinho/vim-colors-graycier'
Plugin 'jnurmine/Zenburn'
Plugin 'nanotech/jellybeans.vim'
Plugin 'nice/sweater'
Plugin 'Pychimp/vim-luna'
Plugin 'winter.vim'
" File type support {{{2
Plugin 'cespare/vim-toml'
Plugin 'dag/vim-fish'
Plugin 'elixir-lang/vim-elixir'
Plugin 'jceb/vim-orgmode'
Plugin 'jwalton512/vim-blade'
Plugin 'LaTeX-Box-Team/LaTeX-Box'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'pearofducks/ansible-vim'
Plugin 'rust-lang/rust.vim'
Plugin 'skammer/vim-css-color'
Plugin 'tpope/vim-markdown'
Plugin 'ledger/vim-ledger'
" Plugin settings {{{1
let g:ctrlp_working_path_mode = 'a'
"set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
nmap <leader>st :SyntasticToggleMode<cr>
nmap <leader>sc :SyntasticCheck<cr>
nmap <leader>ss :SemanticHighlightToggle<cr>
nmap <leader>t :TagbarToggle<cr>
nmap <leader>gg :GitGutterSignsToggle<cr>
nmap <leader>gh :GitGutterLineHighlightsToggle<cr>
let g:LatexBox_Folding=1
let g:LatexBox_latexmk_preview_continuously=1
let g:LatexBox_latexmk_async=1
" Behavior {{{1
set mouse=a
set vb
set splitbelow splitright
let &sh='bash'
set clipboard=autoselect
if has('gui_macvim')
set clipboard=unnamed
elseif has('unnamedplus')
set clipboard+=unnamedplus
end
" http://stackoverflow.com/a/2969052/230170
au FocusLost,TabLeave * call feedkeys("\<C-\>\<C-n>")
" Appearance {{{1
set number
if version >= 703
set relativenumber
end
set scrolloff=2
set laststatus=2
" Colors and GUI {{{2
set background=dark
colorscheme desert
if has('gui_running') || &term == 'rxvt-unicode'
colorscheme darkspectrum
endif
if has('gui_running')
if has('mac')
set guifont=Inconsolata:h14
else
set guifont=Monospace\ 11
endif
set guioptions-=T
endif
" Hidden characters {{{2
set listchars=tab:▸\ ,eol:¬
nmap <leader>l :set list!<cr>
" Syntax {{{1
filetype plugin indent on
syntax on
syntax keyword cTodo contained DEBUG
au BufEnter *.md setf markdown
set spellfile=~/.vim/spell/en.utf-8.add
" Indentation {{{1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
if version >= 703
set colorcolumn=80
end
" Tab completion {{{1
set wildmode=longest,list,full
set wildmenu
set wildignore+=*.hi,*.aux,*.pdf
" Per-directory configuration {{{1
set exrc
set secure
" Search {{{1
set ignorecase
set smartcase
set incsearch
set hlsearch
nnoremap <leader><space> :noh<cr>
" Mappings {{{1
imap jj <Esc>
noremap <Up> <C-w>W
noremap <Down> <C-w>w
noremap <Left> <NOP>
noremap <Right> <NOP>
nmap <leader>m :make
nmap <leader>mm :make<cr>