-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc.simple
More file actions
239 lines (220 loc) · 7.89 KB
/
vimrc.simple
File metadata and controls
239 lines (220 loc) · 7.89 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
" ┌───────────────────────────────────┐
" │ VimFiles by hypc │
" ├───────────────────────────────────┤
" │ https://github.com/hypc/vimfiles/ │
" └───────────────────────────────────┘
" ┌────────────────────────────────┐
" │ Vundle │
" └────────────────────────────────┘
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-scripts/L9'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'danro/rename.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'godlygeek/tabular'
Plugin 'vim-airline/vim-airline'
" Plugin 'vim-airline/vim-airline-themes'
Plugin 'Yggdroot/indentLine'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'kien/ctrlp.vim'
Plugin 'mileszs/ack.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'gorkunov/smartpairs.vim'
Plugin 'gregsexton/MatchTag'
Plugin 'lilydjwg/colorizer'
Plugin 'xuhdev/vim-IniParser'
Plugin 'Raimondi/delimitMate'
Plugin 'alvan/vim-closetag'
Plugin 'tpope/vim-surround'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'mattn/emmet-vim'
call vundle#end()
filetype plugin indent on
" ┌────────────────────────────────┐
" │ settings │
" └────────────────────────────────┘
" Syntax on
syntax on
" Autoindent with two spaces, always expand tabs
set autoindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
set shiftround
set winwidth=79
set backspace=indent,eol,start
" Folding settings
set nofoldenable
" make cmdline tab completion similar to bash
set wildmode=list:longest
" enable ctrl-n and ctrl-p to scroll thru matches
set wildmenu
" stuff to ignore when tab completing
set wildignore=*.o,*.obj,*~
" Vertical / horizontal scroll off settings
set mouse=a
set scrolloff=3
set sidescrolloff=7
set sidescroll=1
" Enable error files & error jumping
set cf
" Yanks go on clipboard instead
set clipboard+=unnamed
" Number of things to remember in history
set history=256
" Writes on make/shell commands
set autowrite
" Ruler on
set ruler
" Line numbers on
set nu
" Line wrapping on
set wrap
" Time to wait after ESC (default causes an annoying delay)
set timeoutlen=250
" Highlight all search results
set incsearch
set hlsearch
" Ignore case in searches
set ignorecase
" Open splits at right side (and below)
set splitright
set splitbelow
" Never ever let Vim write a backup file!
set nobackup
set noswapfile
" Highlight the line and the column of the current position of cursor
set cursorline
"set cursorcolumn
set title
set encoding=utf-8
set termencoding=utf-8
set background=dark
set guifont="Meslo LG S for Powerline":h14
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
map <C-a> <Home>
map <C-e> <End>
" ┌────────────────────────────────┐
" │ vim-airline │
" └────────────────────────────────┘
"set laststatus=2
"set t_Co=256
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
" airline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#syntastic#enabled = 1
" ┌────────────────────────────────┐
" │ indentLine │
" └────────────────────────────────┘
let g:indentLine_char = '┆'
" ┌────────────────────────────────┐
" │ nerdtree │
" └────────────────────────────────┘
nmap <F2> :NERDTreeToggle<CR>
let NERDChristmasTree = 1
let NERDTreeAutoCenter = 1
let NERDTreeBookmarksFile = 1
let NERDTreeMouseMode = 2
let NERDTreeShowFiles = 1
let NERDTreeShowHidden = 1
let NERDTreeShowLineNumbers = 1
let NERDTreeWinPos = 'left'
let NERDTreeWinSize = 42
let NERDTreeIgnore = [
\ '\.DS_Store$',
\ '\.bundle$',
\ '\.capistrano$',
\ '\.git$',
\ '\.gitkeep$',
\ '\.keep$',
\ '\.svn',
\ '\.localized$',
\ '\.routes$',
\ '\.sass-cache$',
\ '\.swo$',
\ '\.swp$',
\ '^\~',
\ 'tags$'
\ ]
let g:NERDTreeShowIgnoredStatus = 1
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" ┌────────────────────────────────┐
" │ ctrlp.vim │
" └────────────────────────────────┘
let g:ctrlp_use_caching = 1
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
" let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
\ }
" ┌────────────────────────────────┐
" │ ack.vim │
" └────────────────────────────────┘
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
" ┌────────────────────────────────┐
" │ syntastic │
" └────────────────────────────────┘
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_loc_list_height = 5
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_error_symbol = '❌'
let g:syntastic_style_error_symbol = '🤔'
let g:syntastic_warning_symbol = '😱'
let g:syntastic_style_warning_symbol = '💩'
let g:syntastic_ruby_checkers = ['mri']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_html_tidy_exec = 'tidy5'
let g:syntastic_html_tidy_ignore_errors = [" proprietary attribute \"ng-"]
let g:syntastic_haml_checkers = ['haml_lint']
highlight link SyntasticErrorSign SignColumn
highlight link SyntasticWarningSign SignColumn
highlight link SyntasticStyleErrorSign SignColumn
highlight link SyntasticStyleWarningSign SignColumn
" ┌────────────────────────────────┐
" │ delimitMate │
" └────────────────────────────────┘
let delimitMate_matchpairs = "(:),[:],{:},『:』,「:」,【:】,《:》"