-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
175 lines (130 loc) · 3.89 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
167
168
169
170
171
172
173
174
175
set nocompatible
filetype off
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
end
call neobundle#rc(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'Shougo/vimproc', {
\ 'build' : {
\ 'mac' : 'make -f make_mac.mak',
\ },
\}
" I want these plugins everywhere
NeoBundle 'Valloric/YouCompleteMe'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'kana/vim-metarw'
NeoBundle 'mattn/webapi-vim'
NeoBundle 'joker1007/vim-metarw-github-issues'
NeoBundle 'sjl/gundo.vim'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'jlanzarotta/bufexplorer'
NeoBundle 'ervandew/supertab'
NeoBundle 'rking/ag.vim'
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'benmills/vimux'
NeoBundle 'cakebaker/scss-syntax.vim'
" Theme
NeoBundle 'chriskempson/base16-vim'
" Ruby-specific plugins
let s:ruby_plugins = [
\'vim-ruby/vim-ruby',
\'skalnik/vim-vroom',
\'tpope/vim-bundler',
\'tpope/vim-rbenv',
\'tpope/vim-rake',
\'tpope/vim-rails',
\'ngmy/vim-rubocop']
for g:plugin in s:ruby_plugins
NeoBundleLazy g:plugin, {'autoload' : { 'filetypes' : ['rb', 'ruby'] }}
endfor
" Javascript plugins
let s:javascript_plugins = [
\'pangloss/vim-javascript',
\'myhere/vim-nodejs-complete']
for g:plugin in s:javascript_plugins
NeoBundleLazy g:plugin, {'autoload' : {'filetypes' : ['javascript', 'js']}}
endfor
NeoBundleLazy 'othree/html5.vim', {'autoload' : {'filetypes' : ['html']}}
NeoBundleLazy 'JulesWang/css.vim', {'autoload' : {'filetypes' : ['scss.css']}}
NeoBundleLazy 'derekwyatt/vim-scala', {'autoload': {'filetypes' : ['scala']}}
NeoBundleLazy 'ujihisa/neco-ghc', {'autoload': {'filetypes' : ['haskell']}}
NeoBundleLazy 'tpope/vim-markdown', {'autoload': {'filetypes' : ['markdown']}}
NeoBundleLazy 'elixir-lang/vim-elixir', {'autoload': {'filetypes' : ['elixir']}}
NeoBundleLazy 'kchmck/vim-coffee-script', {'autoload': {'filetypes': ['coffee']}}
NeoBundleLazy 'VimClojure', {'autoload': {'filetypes': ['clojure']}}
unlet g:plugin
" Check NeoBundles
NeoBundleCheck
" My bundles
" Github
" Bundle 'godlygeek/tabular'
" Bundle 'guns/vim-clojure-static'
" Bundle 'tpope/vim-classpath'
" Bundle 'tpope/vim-fireplace'
" Bundle 'tpope/vim-dispatch'
" B Bundle 'lukerandall/haskellmode-vim'
" base16 colorscheme
" colorscheme base16-default
filetype plugin indent on
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
set nu
set nowrap
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=
set whichwrap+=<,>,h,l,[,]
syntax enable
set encoding=utf-8
set history=1000
set filetype=on
filetype plugin indent on
" Keep at least four lines ahead of the curser when scrolling.
set so=4
" Display extra whitespace
set list listchars=tab:»·,trail:·
" Let vim know about 256-color shells
set t_Co=256
set background=dark
set hidden
set hlsearch
set ignorecase
set smartcase
set incsearch
set showmatch
set ruler
set laststatus=2
set backspace=indent,eol,start
let $PATH = $PATH . ':' . expand("~/.cabal/bin")
let g:github_user='totallymike'
let g:github_token='412f27c60426aa3147cd3931bba1c4b4b5be111b'
let g:EclimCompletionMethod = 'omnifunc'
let g:nodejs_complete_config = {
\ 'js_compl_fn': 'jscomplete#CompleteJS',
\ 'max_node_compl_len': 15
\}
let mapleader = ","
:nnoremap <CR> :nohlsearch<CR>
:nnoremap <F5> :GundoToggle<CR>
" vimux
map <Leader>vi :VimuxInspectRunner<CR>
map <Leader>vq :VimuxCloseRunner<CR>
map <Leader>vp :VimuxPromptCommand<CR>
map <Leader>vl :VimuxRunLastCommand<CR>
let g:VimuxHeight = "25"
" vim-vroom
let g:vroom_use_colors = 1
let g:vroom_use_vimux = 1
" vim-rubocop
let g:vimrubocop_keymap = 0
nmap <Leader>c :RuboCop<CR>
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
set undodir=~/.vim/undodir
set undofile
set backupdir=~/.vim/_backup " where to put backup files
set directory=~/.vim/_temp " Where to put swap files.