-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
183 lines (150 loc) · 3.83 KB
/
vimrc
File metadata and controls
183 lines (150 loc) · 3.83 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
if has('vim_starting')
set nocompatible
set nosmd
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('~/.vim/bundle/'))
"plugins
" required
NeoBundleFetch 'Shougo/neobundle.vim'
" general
NeoBundle 'Valloric/YouCompleteMe', {
\'build': {
\'mac': 'sh -c "./install.sh --gocode-completer"'
\}
\}
NeoBundle 'Shougo/vimproc.vim', {
\'build': {
\'mac': 'sh -c "make clean && make"'
\}
\}
NeoBundle 'xolox/vim-easytags'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'xolox/vim-misc'
NeoBundle 'tpope/vim-endwise.git'
NeoBundle 'tpope/vim-surround.git'
NeoBundle 'tpope/vim-repeat.git'
NeoBundle 'tpope/vim-eunuch.git'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'rking/ag.vim'
NeoBundle 'tomtom/tcomment_vim'
NeoBundle 'regedarek/ZoomWin.git'
NeoBundle 'bling/vim-airline'
NeoBundle 'marijnh/tern_for_vim', {
\'build': {
\'mac': 'sh -c "npm install"'
\}
\}
" ctrlp-related
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'nixprime/cpsm', {
\'build': {
\'mac': 'sh -c "./install.sh"'
\}
\}
" tmux-related
NeoBundle 'edkolev/tmuxline.vim'
NeoBundle 'christoomey/vim-tmux-navigator.git'
NeoBundle 'tmux-plugins/vim-tmux'
NeoBundle 'tmux-plugins/vim-tmux-focus-events'
" colors
NeoBundle 'altercation/vim-colors-solarized.git'
NeoBundle 'NLKNguyen/papercolor-theme'
" syntax
" ruby
NeoBundleLazy 'vim-ruby/vim-ruby.git', {'autoload':{'filetypes':['ruby', 'eruby']}}
NeoBundleLazy 'tpope/vim-rails.git', {'autoload':{'filetypes':['ruby', 'eruby']}}
NeoBundleLazy 'Keithbsmiley/rspec.vim.git', {'autoload':{'filetypes':['ruby']}}
NeoBundleLazy 'sunaku/vim-ruby-minitest', {'autoload':{'filetypes':['ruby']}}
" javascript
NeoBundleLazy 'pangloss/vim-javascript.git', {'autoload':{'filetypes':['javascript', 'html']}}
NeoBundleLazy 'othree/yajs.vim.git', {'autoload':{'filetypes':['javascript', 'html']}}
NeoBundleLazy 'othree/javascript-libraries-syntax.vim.git', {'autoload':{'filetypes':['javascript', 'html']}}
NeoBundle 'elzr/vim-json.git'
" go
NeoBundle 'fatih/vim-go', {
\'build_commands': 'vim',
\'build': {
\'mac': "vim -c 'GoUpdateBinaries' -c 'qa!'"
\},
\'lazy': 1,
\'autoload':{'filetypes':['go']}
\}
" markup
NeoBundleLazy 'othree/html5.vim.git', {'autoload':{'filetypes':['html', 'javascript', 'eruby']}}
NeoBundleLazy 'hail2u/vim-css3-syntax.git', {'autoload':{'filetypes':['html', 'css', 'eruby']}}
NeoBundle 'plasticboy/vim-markdown.git'
NeoBundle 'cakebaker/scss-syntax.vim'
" other
NeoBundle 'tpope/vim-git'
NeoBundle 'solarnz/thrift.vim', {
\'lazy': 1,
\'autoload':{'filetypes':['thrift']}
\}
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
set t_Co=256
syntax on
set background=dark
color solarized
set guifont=Source\ Code\ Pro:h12
"general
set encoding=utf-8
set autoread
set vb t_vb=
set hidden
set nowrap
set history=10000
set cursorline
set switchbuf=useopen
set backspace=indent,eol,start
set timeout
set timeoutlen=350
set ttimeoutlen=200
"statusline
set laststatus=2
"tab settings
set ai
set et
set sta
set ts=2
set sw=2
set sts=2
"searching
set showmatch
set incsearch
set hlsearch
set ignorecase
set smartcase
"line numbers
set number
set relativenumber
set ruler
set numberwidth=2
"wildmenu
set wildmenu
set matchtime=3
set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz
set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/*
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*
set wildignore+=*.swp,*~,._*
"listchars
set nolist
set dir=~/.vim/.temp
set completeopt-=preview
try
set shortmess+=c
catch /E539: Illegal character/
endtry
"setting tags directory
set tags=~/.vim/tags
"set clipoard to unnamed
"set clipboard=unnamed
for f in split(glob('~/.vim/config/general/*.vim'), '\n')
exe 'source' f
endfor
for f in split(glob('~/.vim/config/plugin/*.vim'), '\n')
exe 'source' f
endfor