moron 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES.md +5 -0
- data/Session.vim +933 -0
- data/bin/moron-hook +1 -1
- data/bin/moron-init +1 -1
- data/lib/moron/command.rb +16 -6
- data/lib/moron/hook.rb +31 -18
- data/lib/moron/version.rb +1 -1
- metadata +4 -2
data/CHANGES.md
CHANGED
data/Session.vim
ADDED
|
@@ -0,0 +1,933 @@
|
|
|
1
|
+
let SessionLoad = 1
|
|
2
|
+
if &cp | set nocp | endif
|
|
3
|
+
let s:cpo_save=&cpo
|
|
4
|
+
set cpo&vim
|
|
5
|
+
imap <D-BS>
|
|
6
|
+
imap <M-BS>
|
|
7
|
+
imap <M-Down> }
|
|
8
|
+
inoremap <D-Down> <C-End>
|
|
9
|
+
imap <M-Up> {
|
|
10
|
+
inoremap <D-Up> <C-Home>
|
|
11
|
+
noremap! <M-Right> <C-Right>
|
|
12
|
+
noremap! <D-Right> <End>
|
|
13
|
+
noremap! <M-Left> <C-Left>
|
|
14
|
+
noremap! <D-Left> <Home>
|
|
15
|
+
imap <S-Tab>
|
|
16
|
+
imap <silent> <Plug>IMAP_JumpBack =IMAP_Jumpfunc('b', 0)
|
|
17
|
+
imap <silent> <Plug>IMAP_JumpForward =IMAP_Jumpfunc('', 0)
|
|
18
|
+
map! <D-v> *
|
|
19
|
+
smap i<BS>
|
|
20
|
+
vmap <Plug>FtcDlacVisual
|
|
21
|
+
nmap mz"zyy:TComment
|
|
22
|
+
vmap <NL> <Plug>IMAP_JumpForward
|
|
23
|
+
nmap <NL> <Plug>IMAP_JumpForward
|
|
24
|
+
nmap
|
|
25
|
:TComment
|
|
26
|
+
vmap
|
|
1
27
|
:TComment
|
|
28
|
+
nnoremap <silent> :YRReplace '1', 'p'
|
|
29
|
+
nnoremap <silent> :YRReplace '-1', 'P'
|
|
30
|
+
noremap s :TCommentAs =&ft
|
|
31
|
+
noremap a :TCommentAs
|
|
32
|
+
noremap b :TCommentBlock
|
|
33
|
+
vnoremap <silent> r :TCommentRight
|
|
34
|
+
nnoremap <silent> r :TCommentRight
|
|
35
|
+
onoremap <silent> r :TCommentRight
|
|
36
|
+
vnoremap <silent> i :TCommentInline
|
|
37
|
+
noremap :TComment
|
|
38
|
+
nnoremap ,e :python debugger_watch_input("eval")
|
|
39
|
+
nnoremap <silent> . :YRYankCount '.'
|
|
40
|
+
imap ã <Plug>FtcTc
|
|
41
|
+
nnoremap <silent> D :YRYankCount 'D'
|
|
42
|
+
nmap LA :wa
|
|
43
|
+
nmap LL :w
|
|
44
|
+
nnoremap <silent> P :YRPaste 'P'
|
|
45
|
+
nmap Q :echo "Wrong key..."
|
|
46
|
+
xmap S <Plug>VSurround
|
|
47
|
+
nnoremap <silent> Y :YRYankCount 'Y'
|
|
48
|
+
vmap [% [%m'gv``
|
|
49
|
+
nmap <silent> \cv <Plug>VCSVimDiff
|
|
50
|
+
nmap <silent> \cu <Plug>VCSUpdate
|
|
51
|
+
nmap <silent> \cU <Plug>VCSUnlock
|
|
52
|
+
nmap <silent> \cs <Plug>VCSStatus
|
|
53
|
+
nmap <silent> \cr <Plug>VCSReview
|
|
54
|
+
nmap <silent> \cq <Plug>VCSRevert
|
|
55
|
+
nmap <silent> \cn <Plug>VCSAnnotate
|
|
56
|
+
nmap <silent> \cl <Plug>VCSLog
|
|
57
|
+
nmap <silent> \cL <Plug>VCSLock
|
|
58
|
+
nmap <silent> \ci <Plug>VCSInfo
|
|
59
|
+
nmap <silent> \cg <Plug>VCSGotoOriginal
|
|
60
|
+
nmap <silent> \cG <Plug>VCSClearAndGotoOriginal
|
|
61
|
+
nmap <silent> \cd <Plug>VCSDiff
|
|
62
|
+
nmap <silent> \cD <Plug>VCSDelete
|
|
63
|
+
nmap <silent> \cc <Plug>VCSCommit
|
|
64
|
+
nmap <silent> \ca <Plug>VCSAdd
|
|
65
|
+
noremap \_s :TCommentAs =&ft
|
|
66
|
+
noremap \_a :TCommentAs
|
|
67
|
+
noremap \_b :TCommentBlock
|
|
68
|
+
vnoremap <silent> \_r :TCommentRight
|
|
69
|
+
nnoremap <silent> \_r :TCommentRight
|
|
70
|
+
onoremap <silent> \_r :TCommentRight
|
|
71
|
+
vnoremap <silent> \_i :TCommentInline
|
|
72
|
+
noremap \_ :TComment
|
|
73
|
+
map \<F12> :python debugger_watch_input("property_get", '<cword>')
|
|
74
|
+
map \<F11> :python debugger_watch_input("context_get")
|
|
75
|
+
map \<F6> :python debugger_quit()
|
|
76
|
+
map \<F5> :python debugger_run()
|
|
77
|
+
map \<F4> :python debugger_command('step_out')
|
|
78
|
+
map \<F3> :python debugger_command('step_over')
|
|
79
|
+
map \<F2> :python debugger_command('step_into')
|
|
80
|
+
map \<F1> :python debugger_resize()
|
|
81
|
+
map <silent> \f <Plug>SimpleFold_Foldsearch
|
|
82
|
+
vmap ]% ]%m'gv``
|
|
83
|
+
vmap a% [%v]%
|
|
84
|
+
nmap cs <Plug>Csurround
|
|
85
|
+
vnoremap <silent> d :YRDeleteRange 'v'
|
|
86
|
+
nnoremap <silent> dgg :YRYankCount 'dgg'
|
|
87
|
+
nnoremap <silent> dG :YRYankCount 'dG'
|
|
88
|
+
nnoremap <silent> d$ :YRYankCount 'd$'
|
|
89
|
+
nnoremap <silent> daw :YRYankCount 'daw'
|
|
90
|
+
nnoremap <silent> diw :YRYankCount 'diw'
|
|
91
|
+
nnoremap <silent> dE :YRYankCount 'dE'
|
|
92
|
+
nnoremap <silent> de :YRYankCount 'de'
|
|
93
|
+
nnoremap <silent> dw :YRYankCount 'dw'
|
|
94
|
+
nnoremap <silent> dd :YRYankCount 'dd'
|
|
95
|
+
nmap ds <Plug>Dsurround
|
|
96
|
+
nmap gx <Plug>NetrwBrowseX
|
|
97
|
+
nnoremap <silent> gp :YRPaste 'gp'
|
|
98
|
+
nnoremap <silent> gP :YRPaste 'gP'
|
|
99
|
+
nnoremap <silent> p :YRPaste 'p'
|
|
100
|
+
xmap s <Plug>Vsurround
|
|
101
|
+
nnoremap <silent> x :YRYankCount 'x'
|
|
102
|
+
vnoremap <silent> y :YRYankRange 'v'
|
|
103
|
+
nnoremap <silent> ygg :YRYankCount 'ygg'
|
|
104
|
+
nnoremap <silent> yG :YRYankCount 'yG'
|
|
105
|
+
nnoremap <silent> y$ :YRYankCount 'y$'
|
|
106
|
+
nnoremap <silent> yaw :YRYankCount 'yaw'
|
|
107
|
+
nnoremap <silent> yiw :YRYankCount 'yiw'
|
|
108
|
+
nnoremap <silent> yE :YRYankCount 'yE'
|
|
109
|
+
nnoremap <silent> ye :YRYankCount 'ye'
|
|
110
|
+
nnoremap <silent> yw :YRYankCount 'yw'
|
|
111
|
+
nnoremap <silent> yy :YRYankCount 'yy'
|
|
112
|
+
nmap ySS <Plug>YSsurround
|
|
113
|
+
nmap ySs <Plug>YSsurround
|
|
114
|
+
nmap yss <Plug>Yssurround
|
|
115
|
+
nmap yS <Plug>YSurround
|
|
116
|
+
nmap ys <Plug>Ysurround
|
|
117
|
+
nmap <D-T> :tabe
|
|
118
|
+
nmap <D-t> :FuzzyFinderTextMate
|
|
119
|
+
nmap <S-D-j> gt
|
|
120
|
+
nmap <S-D-l> gt
|
|
121
|
+
nmap <D-Right> gt
|
|
122
|
+
nmap <D-Down> gt
|
|
123
|
+
nmap <S-D-k> gT
|
|
124
|
+
nmap <S-D-h> gT
|
|
125
|
+
nmap <D-Left> gT
|
|
126
|
+
nmap <D-Up> gT
|
|
127
|
+
nmap <D-0> :tabnext 10
|
|
128
|
+
nmap <D-9> :tabnext 9
|
|
129
|
+
nmap <D-8> :tabnext 8
|
|
130
|
+
nmap <D-7> :tabnext 7
|
|
131
|
+
nmap <D-6> :tabnext 6
|
|
132
|
+
nmap <D-5> :tabnext 5
|
|
133
|
+
nmap <D-4> :tabnext 4
|
|
134
|
+
nmap <D-3> :tabnext 3
|
|
135
|
+
nmap <D-2> :tabnext 2
|
|
136
|
+
nmap <D-1> :tabnext 1
|
|
137
|
+
nmap <C-Left> <Left>
|
|
138
|
+
nmap <C-Right> <Right>
|
|
139
|
+
nmap <C-Up> <Up>
|
|
140
|
+
nmap <C-Down> <Down>
|
|
141
|
+
nmap <M-S-Down> 1010<Down>
|
|
142
|
+
nmap <M-S-Up> 1010<Up>
|
|
143
|
+
nmap <S-Down> <Down>
|
|
144
|
+
nmap <S-Up> <Up>
|
|
145
|
+
map <M-Down> }
|
|
146
|
+
vnoremap <D-Down> <C-End>
|
|
147
|
+
onoremap <D-Down> <C-End>
|
|
148
|
+
map <M-Up> {
|
|
149
|
+
vnoremap <D-Up> <C-Home>
|
|
150
|
+
onoremap <D-Up> <C-Home>
|
|
151
|
+
noremap <M-Right> <C-Right>
|
|
152
|
+
vnoremap <D-Right> <End>
|
|
153
|
+
onoremap <D-Right> <End>
|
|
154
|
+
noremap <M-Left> <C-Left>
|
|
155
|
+
vnoremap <D-Left> <Home>
|
|
156
|
+
onoremap <D-Left> <Home>
|
|
157
|
+
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
|
158
|
+
nnoremap <silent> <Plug>CVSWatchRemove :CVSWatch remove
|
|
159
|
+
nnoremap <silent> <Plug>CVSWatchOn :CVSWatch on
|
|
160
|
+
nnoremap <silent> <Plug>CVSWatchOff :CVSWatch off
|
|
161
|
+
nnoremap <silent> <Plug>CVSWatchAdd :CVSWatch add
|
|
162
|
+
nnoremap <silent> <Plug>CVSWatchers :CVSWatchers
|
|
163
|
+
nnoremap <silent> <Plug>CVSUnedit :CVSUnedit
|
|
164
|
+
nnoremap <silent> <Plug>CVSEditors :CVSEditors
|
|
165
|
+
nnoremap <silent> <Plug>CVSEdit :CVSEdit
|
|
166
|
+
nnoremap <silent> <Plug>VCSVimDiff :VCSVimDiff
|
|
167
|
+
nnoremap <silent> <Plug>VCSUpdate :VCSUpdate
|
|
168
|
+
nnoremap <silent> <Plug>VCSUnlock :VCSUnlock
|
|
169
|
+
nnoremap <silent> <Plug>VCSStatus :VCSStatus
|
|
170
|
+
nnoremap <silent> <Plug>VCSReview :VCSReview
|
|
171
|
+
nnoremap <silent> <Plug>VCSRevert :VCSRevert
|
|
172
|
+
nnoremap <silent> <Plug>VCSLog :VCSLog
|
|
173
|
+
nnoremap <silent> <Plug>VCSLock :VCSLock
|
|
174
|
+
nnoremap <silent> <Plug>VCSInfo :VCSInfo
|
|
175
|
+
nnoremap <silent> <Plug>VCSClearAndGotoOriginal :VCSGotoOriginal!
|
|
176
|
+
nnoremap <silent> <Plug>VCSGotoOriginal :VCSGotoOriginal
|
|
177
|
+
nnoremap <silent> <Plug>VCSDiff :VCSDiff
|
|
178
|
+
nnoremap <silent> <Plug>VCSDelete :VCSDelete
|
|
179
|
+
nnoremap <silent> <Plug>VCSCommit :VCSCommit
|
|
180
|
+
nnoremap <silent> <Plug>VCSAnnotate :VCSAnnotate
|
|
181
|
+
nnoremap <silent> <Plug>VCSAdd :VCSAdd
|
|
182
|
+
vmap <silent> <Plug>IMAP_JumpBack `<i=IMAP_Jumpfunc('b', 0)
|
|
183
|
+
vmap <silent> <Plug>IMAP_JumpForward i=IMAP_Jumpfunc('', 0)
|
|
184
|
+
vmap <silent> <Plug>IMAP_DeleteAndJumpBack "_<Del>i=IMAP_Jumpfunc('b', 0)
|
|
185
|
+
vmap <silent> <Plug>IMAP_DeleteAndJumpForward "_<Del>i=IMAP_Jumpfunc('', 0)
|
|
186
|
+
nmap <silent> <Plug>IMAP_JumpBack i=IMAP_Jumpfunc('b', 0)
|
|
187
|
+
nmap <silent> <Plug>IMAP_JumpForward i=IMAP_Jumpfunc('', 0)
|
|
188
|
+
nmap <S-F12> :mak clean
|
|
189
|
+
nmap <F12> :wa
|
|
190
|
+
nmap <F9> :NERDTreeToggle
|
|
191
|
+
vmap <BS> "-d
|
|
192
|
+
vmap <D-x> "*d
|
|
193
|
+
vmap <D-c> "*y
|
|
194
|
+
vmap <D-v> "-d"*P
|
|
195
|
+
nmap <D-v> "*P
|
|
196
|
+
imap <Plug>Jumper
|
|
197
|
+
imap S <Plug>ISurround
|
|
198
|
+
imap s <Plug>Isurround
|
|
199
|
+
imap
|
|
200
|
+
imap <NL> <Plug>IMAP_JumpForward
|
|
201
|
+
imap <Plug>Isurround
|
|
202
|
+
imap =CtrlXPP()
|
|
203
|
+
inoremap s :TCommentAs =&ft
|
|
204
|
+
inoremap a :TCommentAs
|
|
205
|
+
inoremap b :TCommentBlock
|
|
206
|
+
inoremap <silent> r :TCommentRight
|
|
207
|
+
inoremap :TComment
|
|
208
|
+
cnoremap % %
|
|
209
|
+
vmap ã <Plug>FtcTc
|
|
210
|
+
nmap ã <Plug>FtcTc
|
|
211
|
+
let &cpo=s:cpo_save
|
|
212
|
+
unlet s:cpo_save
|
|
213
|
+
set autowrite
|
|
214
|
+
set background=dark
|
|
215
|
+
set backspace=2
|
|
216
|
+
set display=uhex,lastline
|
|
217
|
+
set eadirection=ver
|
|
218
|
+
set fileencodings=ucs-bom,utf-8,default,latin1
|
|
219
|
+
set fillchars=vert:|,stl:^,fold:\
|
|
220
|
+
set guifont=Anonymous:h10
|
|
221
|
+
set guioptions=mce
|
|
222
|
+
set guitablabel=%M%t
|
|
223
|
+
set helplang=fr
|
|
224
|
+
set hlsearch
|
|
225
|
+
set incsearch
|
|
226
|
+
set laststatus=2
|
|
227
|
+
set listchars=eol:↵,trail:⎯,tab:➜\ ,precedes:←,extends:→
|
|
228
|
+
set mouse=a
|
|
229
|
+
set printexpr=system('open\ -a\ Preview\ '.v:fname_in)\ +\ v:shell_error
|
|
230
|
+
set ruler
|
|
231
|
+
set scrolloff=5
|
|
232
|
+
set shiftwidth=2
|
|
233
|
+
set showcmd
|
|
234
|
+
set showmatch
|
|
235
|
+
set sidescroll=1
|
|
236
|
+
set sidescrolloff=5
|
|
237
|
+
set splitbelow
|
|
238
|
+
set statusline=%1*[%n:%3*%f\ %2*%M%1*]%4*%a%1*\ %2*%r%h%1*[%LL]%=%4*%y%3*[%1*%c%V,%l%3*|%1*%p%%%3*|%1*%P%3*]
|
|
239
|
+
set suffixes=-.o
|
|
240
|
+
set switchbuf=split,useopen
|
|
241
|
+
set termencoding=utf-8
|
|
242
|
+
set transparency=20
|
|
243
|
+
set viminfo='20,<50,s10,h,!
|
|
244
|
+
set virtualedit=block
|
|
245
|
+
set window=58
|
|
246
|
+
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
|
247
|
+
let v:this_session=expand("<sfile>:p")
|
|
248
|
+
silent only
|
|
249
|
+
cd ~/prog/ruby/moron
|
|
250
|
+
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
251
|
+
let s:wipebuf = bufnr('%')
|
|
252
|
+
endif
|
|
253
|
+
set shortmess=aoO
|
|
254
|
+
badd +3 lib/moron/parser.rb
|
|
255
|
+
badd +0 ~/prog/git-ssh-admin/git-ssh.conf
|
|
256
|
+
badd +0 lib/moron/config.rb
|
|
257
|
+
badd +1 website/_site/index.html
|
|
258
|
+
badd +0 ~/prog/ruby/moron/lib/moron/command.rb
|
|
259
|
+
badd +0 bin/moron
|
|
260
|
+
silent! argdel *
|
|
261
|
+
edit lib/moron/parser.rb
|
|
262
|
+
set splitbelow splitright
|
|
263
|
+
wincmd _ | wincmd |
|
|
264
|
+
vsplit
|
|
265
|
+
1wincmd h
|
|
266
|
+
wincmd _ | wincmd |
|
|
267
|
+
split
|
|
268
|
+
1wincmd k
|
|
269
|
+
wincmd w
|
|
270
|
+
wincmd w
|
|
271
|
+
set nosplitright
|
|
272
|
+
wincmd t
|
|
273
|
+
set winheight=1 winwidth=1
|
|
274
|
+
exe '1resize ' . ((&lines * 28 + 29) / 59)
|
|
275
|
+
exe 'vert 1resize ' . ((&columns * 98 + 99) / 198)
|
|
276
|
+
exe '2resize ' . ((&lines * 28 + 29) / 59)
|
|
277
|
+
exe 'vert 2resize ' . ((&columns * 98 + 99) / 198)
|
|
278
|
+
exe 'vert 3resize ' . ((&columns * 99 + 99) / 198)
|
|
279
|
+
argglobal
|
|
280
|
+
nmap <buffer> <silent> :exec "call RCT_find_tag_or_ri('" . expand("<cword>") . "')"
|
|
281
|
+
setlocal keymap=
|
|
282
|
+
setlocal noarabic
|
|
283
|
+
setlocal noautoindent
|
|
284
|
+
setlocal nobinary
|
|
285
|
+
setlocal bufhidden=
|
|
286
|
+
setlocal buflisted
|
|
287
|
+
setlocal buftype=
|
|
288
|
+
setlocal nocindent
|
|
289
|
+
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
|
290
|
+
setlocal cinoptions=
|
|
291
|
+
setlocal cinwords=if,else,while,do,for,switch
|
|
292
|
+
setlocal comments=:#
|
|
293
|
+
setlocal commentstring=#\ %s
|
|
294
|
+
setlocal complete=.,w,b,u,t,i
|
|
295
|
+
setlocal completefunc=<SNR>25_RCT_completion
|
|
296
|
+
setlocal nocopyindent
|
|
297
|
+
setlocal nocursorcolumn
|
|
298
|
+
setlocal nocursorline
|
|
299
|
+
setlocal define=^\\s*#\\s*define
|
|
300
|
+
setlocal dictionary=
|
|
301
|
+
setlocal nodiff
|
|
302
|
+
setlocal equalprg=
|
|
303
|
+
setlocal errorformat=
|
|
304
|
+
setlocal noexpandtab
|
|
305
|
+
if &filetype != 'ruby'
|
|
306
|
+
setlocal filetype=ruby
|
|
307
|
+
endif
|
|
308
|
+
set foldcolumn=2
|
|
309
|
+
setlocal foldcolumn=2
|
|
310
|
+
setlocal foldenable
|
|
311
|
+
setlocal foldexpr=0
|
|
312
|
+
setlocal foldignore=#
|
|
313
|
+
set foldlevel=1
|
|
314
|
+
setlocal foldlevel=0
|
|
315
|
+
setlocal foldmarker={{{,}}}
|
|
316
|
+
set foldmethod=syntax
|
|
317
|
+
setlocal foldmethod=manual
|
|
318
|
+
setlocal foldminlines=1
|
|
319
|
+
setlocal foldnestmax=20
|
|
320
|
+
setlocal foldtext=<SNR>13_SimpleFold_FoldText()
|
|
321
|
+
setlocal formatexpr=
|
|
322
|
+
setlocal formatoptions=croql
|
|
323
|
+
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
|
324
|
+
setlocal grepprg=
|
|
325
|
+
setlocal iminsert=2
|
|
326
|
+
setlocal imsearch=2
|
|
327
|
+
setlocal include=^\\s*\\<\\(load\\|w*require\\)\\>
|
|
328
|
+
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
|
329
|
+
setlocal indentexpr=GetRubyIndent()
|
|
330
|
+
setlocal indentkeys=0{,0},0),0],!^F,o,O,e,=end,=elsif,=when,=ensure,=rescue,==begin,==end
|
|
331
|
+
setlocal noinfercase
|
|
332
|
+
setlocal iskeyword=@,48-57,_,192-255,d,o,c,l,a,s,b,e,g,i,n,h,w,t,x,f,r,:,u,j
|
|
333
|
+
setlocal keywordprg=ri\ -T
|
|
334
|
+
setlocal nolinebreak
|
|
335
|
+
setlocal nolisp
|
|
336
|
+
set list
|
|
337
|
+
setlocal list
|
|
338
|
+
setlocal nomacmeta
|
|
339
|
+
setlocal makeprg=
|
|
340
|
+
setlocal matchpairs=(:),{:},[:]
|
|
341
|
+
setlocal modeline
|
|
342
|
+
setlocal modifiable
|
|
343
|
+
setlocal nrformats=octal,hex
|
|
344
|
+
setlocal nonumber
|
|
345
|
+
setlocal numberwidth=4
|
|
346
|
+
setlocal omnifunc=rubycomplete#Complete
|
|
347
|
+
setlocal path=.,/opt/lib/ruby/site_ruby/1.8,/opt/lib/ruby/site_ruby/1.8/i686-darwin9,/opt/lib/ruby/site_ruby,/opt/lib/ruby/vendor_ruby/1.8,/opt/lib/ruby/vendor_ruby/1.8/i686-darwin9,/opt/lib/ruby/vendor_ruby,/opt/lib/ruby/1.8,/opt/lib/ruby/1.8/i686-darwin9,,/opt/lib/ruby/gems/1.8/gems/DepGraph-0.10.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/test,/opt/lib/ruby/gems/1.8/gems/Platform-0.4.0/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib/case_sensitive_require,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require,/opt/lib/ruby/g
|
|
348
|
+
setlocal nopreserveindent
|
|
349
|
+
setlocal nopreviewwindow
|
|
350
|
+
setlocal quoteescape=\\
|
|
351
|
+
setlocal noreadonly
|
|
352
|
+
setlocal norightleft
|
|
353
|
+
setlocal rightleftcmd=search
|
|
354
|
+
setlocal noscrollbind
|
|
355
|
+
setlocal shiftwidth=2
|
|
356
|
+
setlocal noshortname
|
|
357
|
+
setlocal nosmartindent
|
|
358
|
+
setlocal softtabstop=0
|
|
359
|
+
setlocal nospell
|
|
360
|
+
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
|
361
|
+
setlocal spellfile=
|
|
362
|
+
setlocal spelllang=en
|
|
363
|
+
setlocal statusline=
|
|
364
|
+
setlocal suffixesadd=.rb
|
|
365
|
+
setlocal swapfile
|
|
366
|
+
setlocal synmaxcol=3000
|
|
367
|
+
if &syntax != 'ruby'
|
|
368
|
+
setlocal syntax=ruby
|
|
369
|
+
endif
|
|
370
|
+
setlocal tabstop=8
|
|
371
|
+
setlocal tags=
|
|
372
|
+
setlocal textwidth=0
|
|
373
|
+
setlocal thesaurus=
|
|
374
|
+
setlocal nowinfixheight
|
|
375
|
+
setlocal nowinfixwidth
|
|
376
|
+
set nowrap
|
|
377
|
+
setlocal nowrap
|
|
378
|
+
setlocal wrapmargin=0
|
|
379
|
+
silent! normal! zE
|
|
380
|
+
1,1fold
|
|
381
|
+
1,1fold
|
|
382
|
+
2,2fold
|
|
383
|
+
3,3fold
|
|
384
|
+
4,7fold
|
|
385
|
+
15,22fold
|
|
386
|
+
12,23fold
|
|
387
|
+
8,25fold
|
|
388
|
+
36,38fold
|
|
389
|
+
33,49fold
|
|
390
|
+
26,49fold
|
|
391
|
+
8
|
|
392
|
+
normal zo
|
|
393
|
+
12
|
|
394
|
+
normal zo
|
|
395
|
+
15
|
|
396
|
+
normal zo
|
|
397
|
+
12
|
|
398
|
+
normal zo
|
|
399
|
+
8
|
|
400
|
+
normal zo
|
|
401
|
+
26
|
|
402
|
+
normal zo
|
|
403
|
+
33
|
|
404
|
+
normal zo
|
|
405
|
+
36
|
|
406
|
+
normal zo
|
|
407
|
+
33
|
|
408
|
+
normal zo
|
|
409
|
+
26
|
|
410
|
+
normal zo
|
|
411
|
+
let s:l = 41 - ((19 * winheight(0) + 14) / 28)
|
|
412
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
413
|
+
exe s:l
|
|
414
|
+
normal! zt
|
|
415
|
+
41
|
|
416
|
+
normal! 017l
|
|
417
|
+
wincmd w
|
|
418
|
+
argglobal
|
|
419
|
+
edit ~/prog/git-ssh-admin/git-ssh.conf
|
|
420
|
+
setlocal keymap=
|
|
421
|
+
setlocal noarabic
|
|
422
|
+
setlocal noautoindent
|
|
423
|
+
setlocal nobinary
|
|
424
|
+
setlocal bufhidden=
|
|
425
|
+
setlocal buflisted
|
|
426
|
+
setlocal buftype=
|
|
427
|
+
setlocal nocindent
|
|
428
|
+
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
|
429
|
+
setlocal cinoptions=
|
|
430
|
+
setlocal cinwords=if,else,while,do,for,switch
|
|
431
|
+
setlocal comments=:#
|
|
432
|
+
setlocal commentstring=#\ %s
|
|
433
|
+
setlocal complete=.,w,b,u,t,i
|
|
434
|
+
setlocal completefunc=
|
|
435
|
+
setlocal nocopyindent
|
|
436
|
+
setlocal nocursorcolumn
|
|
437
|
+
setlocal nocursorline
|
|
438
|
+
setlocal define=
|
|
439
|
+
setlocal dictionary=
|
|
440
|
+
setlocal nodiff
|
|
441
|
+
setlocal equalprg=
|
|
442
|
+
setlocal errorformat=
|
|
443
|
+
setlocal noexpandtab
|
|
444
|
+
if &filetype != 'conf'
|
|
445
|
+
setlocal filetype=conf
|
|
446
|
+
endif
|
|
447
|
+
set foldcolumn=2
|
|
448
|
+
setlocal foldcolumn=2
|
|
449
|
+
setlocal foldenable
|
|
450
|
+
setlocal foldexpr=0
|
|
451
|
+
setlocal foldignore=#
|
|
452
|
+
set foldlevel=1
|
|
453
|
+
setlocal foldlevel=1
|
|
454
|
+
setlocal foldmarker={{{,}}}
|
|
455
|
+
set foldmethod=syntax
|
|
456
|
+
setlocal foldmethod=syntax
|
|
457
|
+
setlocal foldminlines=1
|
|
458
|
+
setlocal foldnestmax=20
|
|
459
|
+
setlocal foldtext=foldtext()
|
|
460
|
+
setlocal formatexpr=
|
|
461
|
+
setlocal formatoptions=croql
|
|
462
|
+
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
|
463
|
+
setlocal grepprg=
|
|
464
|
+
setlocal iminsert=2
|
|
465
|
+
setlocal imsearch=2
|
|
466
|
+
setlocal include=
|
|
467
|
+
setlocal includeexpr=
|
|
468
|
+
setlocal indentexpr=
|
|
469
|
+
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
|
|
470
|
+
setlocal noinfercase
|
|
471
|
+
setlocal iskeyword=@,48-57,_,192-255
|
|
472
|
+
setlocal keywordprg=
|
|
473
|
+
setlocal nolinebreak
|
|
474
|
+
setlocal nolisp
|
|
475
|
+
set list
|
|
476
|
+
setlocal list
|
|
477
|
+
setlocal nomacmeta
|
|
478
|
+
setlocal makeprg=
|
|
479
|
+
setlocal matchpairs=(:),{:},[:]
|
|
480
|
+
setlocal modeline
|
|
481
|
+
setlocal modifiable
|
|
482
|
+
setlocal nrformats=octal,hex
|
|
483
|
+
setlocal nonumber
|
|
484
|
+
setlocal numberwidth=4
|
|
485
|
+
setlocal omnifunc=
|
|
486
|
+
setlocal path=
|
|
487
|
+
setlocal nopreserveindent
|
|
488
|
+
setlocal nopreviewwindow
|
|
489
|
+
setlocal quoteescape=\\
|
|
490
|
+
setlocal noreadonly
|
|
491
|
+
setlocal norightleft
|
|
492
|
+
setlocal rightleftcmd=search
|
|
493
|
+
setlocal noscrollbind
|
|
494
|
+
setlocal shiftwidth=2
|
|
495
|
+
setlocal noshortname
|
|
496
|
+
setlocal nosmartindent
|
|
497
|
+
setlocal softtabstop=0
|
|
498
|
+
setlocal nospell
|
|
499
|
+
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
|
500
|
+
setlocal spellfile=
|
|
501
|
+
setlocal spelllang=en
|
|
502
|
+
setlocal statusline=
|
|
503
|
+
setlocal suffixesadd=
|
|
504
|
+
setlocal swapfile
|
|
505
|
+
setlocal synmaxcol=3000
|
|
506
|
+
if &syntax != 'conf'
|
|
507
|
+
setlocal syntax=conf
|
|
508
|
+
endif
|
|
509
|
+
setlocal tabstop=8
|
|
510
|
+
setlocal tags=
|
|
511
|
+
setlocal textwidth=0
|
|
512
|
+
setlocal thesaurus=
|
|
513
|
+
setlocal nowinfixheight
|
|
514
|
+
setlocal nowinfixwidth
|
|
515
|
+
set nowrap
|
|
516
|
+
setlocal nowrap
|
|
517
|
+
setlocal wrapmargin=0
|
|
518
|
+
let s:l = 11 - ((10 * winheight(0) + 14) / 28)
|
|
519
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
520
|
+
exe s:l
|
|
521
|
+
normal! zt
|
|
522
|
+
11
|
|
523
|
+
normal! 0
|
|
524
|
+
wincmd w
|
|
525
|
+
argglobal
|
|
526
|
+
edit lib/moron/config.rb
|
|
527
|
+
nmap <buffer> <silent> :exec "call RCT_find_tag_or_ri('" . expand("<cword>") . "')"
|
|
528
|
+
setlocal keymap=
|
|
529
|
+
setlocal noarabic
|
|
530
|
+
setlocal noautoindent
|
|
531
|
+
setlocal nobinary
|
|
532
|
+
setlocal bufhidden=
|
|
533
|
+
setlocal buflisted
|
|
534
|
+
setlocal buftype=
|
|
535
|
+
setlocal nocindent
|
|
536
|
+
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
|
537
|
+
setlocal cinoptions=
|
|
538
|
+
setlocal cinwords=if,else,while,do,for,switch
|
|
539
|
+
setlocal comments=:#
|
|
540
|
+
setlocal commentstring=#\ %s
|
|
541
|
+
setlocal complete=.,w,b,u,t,i
|
|
542
|
+
setlocal completefunc=<SNR>25_RCT_completion
|
|
543
|
+
setlocal nocopyindent
|
|
544
|
+
setlocal nocursorcolumn
|
|
545
|
+
setlocal nocursorline
|
|
546
|
+
setlocal define=
|
|
547
|
+
setlocal dictionary=
|
|
548
|
+
setlocal nodiff
|
|
549
|
+
setlocal equalprg=
|
|
550
|
+
setlocal errorformat=
|
|
551
|
+
setlocal noexpandtab
|
|
552
|
+
if &filetype != 'ruby'
|
|
553
|
+
setlocal filetype=ruby
|
|
554
|
+
endif
|
|
555
|
+
set foldcolumn=2
|
|
556
|
+
setlocal foldcolumn=2
|
|
557
|
+
setlocal foldenable
|
|
558
|
+
setlocal foldexpr=0
|
|
559
|
+
setlocal foldignore=#
|
|
560
|
+
set foldlevel=1
|
|
561
|
+
setlocal foldlevel=1
|
|
562
|
+
setlocal foldmarker={{{,}}}
|
|
563
|
+
set foldmethod=syntax
|
|
564
|
+
setlocal foldmethod=syntax
|
|
565
|
+
setlocal foldminlines=1
|
|
566
|
+
setlocal foldnestmax=20
|
|
567
|
+
setlocal foldtext=foldtext()
|
|
568
|
+
setlocal formatexpr=
|
|
569
|
+
setlocal formatoptions=croql
|
|
570
|
+
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
|
571
|
+
setlocal grepprg=
|
|
572
|
+
setlocal iminsert=2
|
|
573
|
+
setlocal imsearch=2
|
|
574
|
+
setlocal include=^\\s*\\<\\(load\\|w*require\\)\\>
|
|
575
|
+
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
|
576
|
+
setlocal indentexpr=GetRubyIndent()
|
|
577
|
+
setlocal indentkeys=0{,0},0),0],!^F,o,O,e,=end,=elsif,=when,=ensure,=rescue,==begin,==end
|
|
578
|
+
setlocal noinfercase
|
|
579
|
+
setlocal iskeyword=@,48-57,_,192-255,d,o,c,l,a,s,b,e,g,i,n,h,w,t,x,f,r,:,u,j
|
|
580
|
+
setlocal keywordprg=ri\ -T
|
|
581
|
+
setlocal nolinebreak
|
|
582
|
+
setlocal nolisp
|
|
583
|
+
set list
|
|
584
|
+
setlocal list
|
|
585
|
+
setlocal nomacmeta
|
|
586
|
+
setlocal makeprg=
|
|
587
|
+
setlocal matchpairs=(:),{:},[:]
|
|
588
|
+
setlocal modeline
|
|
589
|
+
setlocal modifiable
|
|
590
|
+
setlocal nrformats=octal,hex
|
|
591
|
+
setlocal nonumber
|
|
592
|
+
setlocal numberwidth=4
|
|
593
|
+
setlocal omnifunc=rubycomplete#Complete
|
|
594
|
+
setlocal path=.,/opt/lib/ruby/site_ruby/1.8,/opt/lib/ruby/site_ruby/1.8/i686-darwin9,/opt/lib/ruby/site_ruby,/opt/lib/ruby/vendor_ruby/1.8,/opt/lib/ruby/vendor_ruby/1.8/i686-darwin9,/opt/lib/ruby/vendor_ruby,/opt/lib/ruby/1.8,/opt/lib/ruby/1.8/i686-darwin9,,/opt/lib/ruby/gems/1.8/gems/DepGraph-0.10.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/test,/opt/lib/ruby/gems/1.8/gems/Platform-0.4.0/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib/case_sensitive_require,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require,/opt/lib/ruby/g
|
|
595
|
+
setlocal nopreserveindent
|
|
596
|
+
setlocal nopreviewwindow
|
|
597
|
+
setlocal quoteescape=\\
|
|
598
|
+
setlocal noreadonly
|
|
599
|
+
setlocal norightleft
|
|
600
|
+
setlocal rightleftcmd=search
|
|
601
|
+
setlocal noscrollbind
|
|
602
|
+
setlocal shiftwidth=2
|
|
603
|
+
setlocal noshortname
|
|
604
|
+
setlocal nosmartindent
|
|
605
|
+
setlocal softtabstop=0
|
|
606
|
+
setlocal nospell
|
|
607
|
+
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
|
608
|
+
setlocal spellfile=
|
|
609
|
+
setlocal spelllang=en
|
|
610
|
+
setlocal statusline=
|
|
611
|
+
setlocal suffixesadd=.rb
|
|
612
|
+
setlocal swapfile
|
|
613
|
+
setlocal synmaxcol=3000
|
|
614
|
+
if &syntax != 'ruby'
|
|
615
|
+
setlocal syntax=ruby
|
|
616
|
+
endif
|
|
617
|
+
setlocal tabstop=8
|
|
618
|
+
setlocal tags=
|
|
619
|
+
setlocal textwidth=0
|
|
620
|
+
setlocal thesaurus=
|
|
621
|
+
setlocal nowinfixheight
|
|
622
|
+
setlocal nowinfixwidth
|
|
623
|
+
set nowrap
|
|
624
|
+
setlocal nowrap
|
|
625
|
+
setlocal wrapmargin=0
|
|
626
|
+
let s:l = 24 - ((23 * winheight(0) + 28) / 57)
|
|
627
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
628
|
+
exe s:l
|
|
629
|
+
normal! zt
|
|
630
|
+
24
|
|
631
|
+
normal! 06l
|
|
632
|
+
wincmd w
|
|
633
|
+
exe '1resize ' . ((&lines * 28 + 29) / 59)
|
|
634
|
+
exe 'vert 1resize ' . ((&columns * 98 + 99) / 198)
|
|
635
|
+
exe '2resize ' . ((&lines * 28 + 29) / 59)
|
|
636
|
+
exe 'vert 2resize ' . ((&columns * 98 + 99) / 198)
|
|
637
|
+
exe 'vert 3resize ' . ((&columns * 99 + 99) / 198)
|
|
638
|
+
tabedit bin/moron
|
|
639
|
+
set splitbelow splitright
|
|
640
|
+
wincmd _ | wincmd |
|
|
641
|
+
vsplit
|
|
642
|
+
1wincmd h
|
|
643
|
+
wincmd w
|
|
644
|
+
set nosplitright
|
|
645
|
+
wincmd t
|
|
646
|
+
set winheight=1 winwidth=1
|
|
647
|
+
exe 'vert 1resize ' . ((&columns * 99 + 99) / 198)
|
|
648
|
+
exe 'vert 2resize ' . ((&columns * 98 + 99) / 198)
|
|
649
|
+
argglobal
|
|
650
|
+
nmap <buffer> <silent> :exec "call RCT_find_tag_or_ri('" . expand("<cword>") . "')"
|
|
651
|
+
setlocal keymap=
|
|
652
|
+
setlocal noarabic
|
|
653
|
+
setlocal noautoindent
|
|
654
|
+
setlocal nobinary
|
|
655
|
+
setlocal bufhidden=
|
|
656
|
+
setlocal buflisted
|
|
657
|
+
setlocal buftype=
|
|
658
|
+
setlocal nocindent
|
|
659
|
+
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
|
660
|
+
setlocal cinoptions=
|
|
661
|
+
setlocal cinwords=if,else,while,do,for,switch
|
|
662
|
+
setlocal comments=:#
|
|
663
|
+
setlocal commentstring=#\ %s
|
|
664
|
+
setlocal complete=.,w,b,u,t,i
|
|
665
|
+
setlocal completefunc=<SNR>25_RCT_completion
|
|
666
|
+
setlocal nocopyindent
|
|
667
|
+
setlocal nocursorcolumn
|
|
668
|
+
setlocal nocursorline
|
|
669
|
+
setlocal define=
|
|
670
|
+
setlocal dictionary=
|
|
671
|
+
setlocal nodiff
|
|
672
|
+
setlocal equalprg=
|
|
673
|
+
setlocal errorformat=
|
|
674
|
+
setlocal noexpandtab
|
|
675
|
+
if &filetype != 'ruby'
|
|
676
|
+
setlocal filetype=ruby
|
|
677
|
+
endif
|
|
678
|
+
set foldcolumn=2
|
|
679
|
+
setlocal foldcolumn=2
|
|
680
|
+
setlocal foldenable
|
|
681
|
+
setlocal foldexpr=0
|
|
682
|
+
setlocal foldignore=#
|
|
683
|
+
set foldlevel=1
|
|
684
|
+
setlocal foldlevel=1
|
|
685
|
+
setlocal foldmarker={{{,}}}
|
|
686
|
+
set foldmethod=syntax
|
|
687
|
+
setlocal foldmethod=syntax
|
|
688
|
+
setlocal foldminlines=1
|
|
689
|
+
setlocal foldnestmax=20
|
|
690
|
+
setlocal foldtext=foldtext()
|
|
691
|
+
setlocal formatexpr=
|
|
692
|
+
setlocal formatoptions=croql
|
|
693
|
+
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
|
694
|
+
setlocal grepprg=
|
|
695
|
+
setlocal iminsert=2
|
|
696
|
+
setlocal imsearch=2
|
|
697
|
+
setlocal include=^\\s*\\<\\(load\\|w*require\\)\\>
|
|
698
|
+
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
|
699
|
+
setlocal indentexpr=GetRubyIndent()
|
|
700
|
+
setlocal indentkeys=0{,0},0),0],!^F,o,O,e,=end,=elsif,=when,=ensure,=rescue,==begin,==end
|
|
701
|
+
setlocal noinfercase
|
|
702
|
+
setlocal iskeyword=@,48-57,_,192-255,d,o,c,l,a,s,b,e,g,i,n,h,w,t,x,f,r,:,u,j
|
|
703
|
+
setlocal keywordprg=ri\ -T
|
|
704
|
+
setlocal nolinebreak
|
|
705
|
+
setlocal nolisp
|
|
706
|
+
set list
|
|
707
|
+
setlocal list
|
|
708
|
+
setlocal nomacmeta
|
|
709
|
+
setlocal makeprg=
|
|
710
|
+
setlocal matchpairs=(:),{:},[:]
|
|
711
|
+
setlocal modeline
|
|
712
|
+
setlocal modifiable
|
|
713
|
+
setlocal nrformats=octal,hex
|
|
714
|
+
setlocal nonumber
|
|
715
|
+
setlocal numberwidth=4
|
|
716
|
+
setlocal omnifunc=rubycomplete#Complete
|
|
717
|
+
setlocal path=.,/opt/lib/ruby/site_ruby/1.8,/opt/lib/ruby/site_ruby/1.8/i686-darwin9,/opt/lib/ruby/site_ruby,/opt/lib/ruby/vendor_ruby/1.8,/opt/lib/ruby/vendor_ruby/1.8/i686-darwin9,/opt/lib/ruby/vendor_ruby,/opt/lib/ruby/1.8,/opt/lib/ruby/1.8/i686-darwin9,,/opt/lib/ruby/gems/1.8/gems/DepGraph-0.10.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/test,/opt/lib/ruby/gems/1.8/gems/Platform-0.4.0/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib/case_sensitive_require,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require,/opt/lib/ruby/g
|
|
718
|
+
setlocal nopreserveindent
|
|
719
|
+
setlocal nopreviewwindow
|
|
720
|
+
setlocal quoteescape=\\
|
|
721
|
+
setlocal noreadonly
|
|
722
|
+
setlocal norightleft
|
|
723
|
+
setlocal rightleftcmd=search
|
|
724
|
+
setlocal noscrollbind
|
|
725
|
+
setlocal shiftwidth=2
|
|
726
|
+
setlocal noshortname
|
|
727
|
+
setlocal nosmartindent
|
|
728
|
+
setlocal softtabstop=0
|
|
729
|
+
setlocal nospell
|
|
730
|
+
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
|
731
|
+
setlocal spellfile=
|
|
732
|
+
setlocal spelllang=en
|
|
733
|
+
setlocal statusline=
|
|
734
|
+
setlocal suffixesadd=.rb
|
|
735
|
+
setlocal swapfile
|
|
736
|
+
setlocal synmaxcol=3000
|
|
737
|
+
if &syntax != 'ruby'
|
|
738
|
+
setlocal syntax=ruby
|
|
739
|
+
endif
|
|
740
|
+
setlocal tabstop=8
|
|
741
|
+
setlocal tags=
|
|
742
|
+
setlocal textwidth=0
|
|
743
|
+
setlocal thesaurus=
|
|
744
|
+
setlocal nowinfixheight
|
|
745
|
+
setlocal nowinfixwidth
|
|
746
|
+
set nowrap
|
|
747
|
+
setlocal nowrap
|
|
748
|
+
setlocal wrapmargin=0
|
|
749
|
+
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
|
750
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
751
|
+
exe s:l
|
|
752
|
+
normal! zt
|
|
753
|
+
1
|
|
754
|
+
normal! 0
|
|
755
|
+
wincmd w
|
|
756
|
+
argglobal
|
|
757
|
+
edit ~/prog/ruby/moron/lib/moron/command.rb
|
|
758
|
+
nmap <buffer> <silent> :exec "call RCT_find_tag_or_ri('" . expand("<cword>") . "')"
|
|
759
|
+
setlocal keymap=
|
|
760
|
+
setlocal noarabic
|
|
761
|
+
setlocal noautoindent
|
|
762
|
+
setlocal nobinary
|
|
763
|
+
setlocal bufhidden=
|
|
764
|
+
setlocal buflisted
|
|
765
|
+
setlocal buftype=
|
|
766
|
+
setlocal nocindent
|
|
767
|
+
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
|
768
|
+
setlocal cinoptions=
|
|
769
|
+
setlocal cinwords=if,else,while,do,for,switch
|
|
770
|
+
setlocal comments=:#
|
|
771
|
+
setlocal commentstring=#\ %s
|
|
772
|
+
setlocal complete=.,w,b,u,t,i
|
|
773
|
+
setlocal completefunc=<SNR>25_RCT_completion
|
|
774
|
+
setlocal nocopyindent
|
|
775
|
+
setlocal nocursorcolumn
|
|
776
|
+
setlocal nocursorline
|
|
777
|
+
setlocal define=
|
|
778
|
+
setlocal dictionary=
|
|
779
|
+
setlocal nodiff
|
|
780
|
+
setlocal equalprg=
|
|
781
|
+
setlocal errorformat=
|
|
782
|
+
setlocal noexpandtab
|
|
783
|
+
if &filetype != 'ruby'
|
|
784
|
+
setlocal filetype=ruby
|
|
785
|
+
endif
|
|
786
|
+
set foldcolumn=2
|
|
787
|
+
setlocal foldcolumn=2
|
|
788
|
+
setlocal foldenable
|
|
789
|
+
setlocal foldexpr=0
|
|
790
|
+
setlocal foldignore=#
|
|
791
|
+
set foldlevel=1
|
|
792
|
+
setlocal foldlevel=0
|
|
793
|
+
setlocal foldmarker={{{,}}}
|
|
794
|
+
set foldmethod=syntax
|
|
795
|
+
setlocal foldmethod=manual
|
|
796
|
+
setlocal foldminlines=1
|
|
797
|
+
setlocal foldnestmax=20
|
|
798
|
+
setlocal foldtext=<SNR>13_SimpleFold_FoldText()
|
|
799
|
+
setlocal formatexpr=
|
|
800
|
+
setlocal formatoptions=croql
|
|
801
|
+
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
|
802
|
+
setlocal grepprg=
|
|
803
|
+
setlocal iminsert=2
|
|
804
|
+
setlocal imsearch=2
|
|
805
|
+
setlocal include=^\\s*\\<\\(load\\|w*require\\)\\>
|
|
806
|
+
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
|
|
807
|
+
setlocal indentexpr=GetRubyIndent()
|
|
808
|
+
setlocal indentkeys=0{,0},0),0],!^F,o,O,e,=end,=elsif,=when,=ensure,=rescue,==begin,==end
|
|
809
|
+
setlocal noinfercase
|
|
810
|
+
setlocal iskeyword=@,48-57,_,192-255,d,o,c,l,a,s,b,e,g,i,n,h,w,t,x,f,r,:,u,j
|
|
811
|
+
setlocal keywordprg=ri\ -T
|
|
812
|
+
setlocal nolinebreak
|
|
813
|
+
setlocal nolisp
|
|
814
|
+
set list
|
|
815
|
+
setlocal list
|
|
816
|
+
setlocal nomacmeta
|
|
817
|
+
setlocal makeprg=
|
|
818
|
+
setlocal matchpairs=(:),{:},[:]
|
|
819
|
+
setlocal modeline
|
|
820
|
+
setlocal modifiable
|
|
821
|
+
setlocal nrformats=octal,hex
|
|
822
|
+
setlocal nonumber
|
|
823
|
+
setlocal numberwidth=4
|
|
824
|
+
setlocal omnifunc=rubycomplete#Complete
|
|
825
|
+
setlocal path=.,/opt/lib/ruby/site_ruby/1.8,/opt/lib/ruby/site_ruby/1.8/i686-darwin9,/opt/lib/ruby/site_ruby,/opt/lib/ruby/vendor_ruby/1.8,/opt/lib/ruby/vendor_ruby/1.8/i686-darwin9,/opt/lib/ruby/vendor_ruby,/opt/lib/ruby/1.8,/opt/lib/ruby/1.8/i686-darwin9,,/opt/lib/ruby/gems/1.8/gems/DepGraph-0.10.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.1.1/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-2.2.0/test,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/lib,/opt/lib/ruby/gems/1.8/gems/ParseTree-3.0.2/test,/opt/lib/ruby/gems/1.8/gems/Platform-0.4.0/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.1/lib/case_sensitive_require,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib,/opt/lib/ruby/gems/1.8/gems/RedCloth-4.0.2/lib/case_sensitive_require,/opt/lib/ruby/g
|
|
826
|
+
setlocal nopreserveindent
|
|
827
|
+
setlocal nopreviewwindow
|
|
828
|
+
setlocal quoteescape=\\
|
|
829
|
+
setlocal noreadonly
|
|
830
|
+
setlocal norightleft
|
|
831
|
+
setlocal rightleftcmd=search
|
|
832
|
+
setlocal noscrollbind
|
|
833
|
+
setlocal shiftwidth=2
|
|
834
|
+
setlocal noshortname
|
|
835
|
+
setlocal nosmartindent
|
|
836
|
+
setlocal softtabstop=0
|
|
837
|
+
setlocal nospell
|
|
838
|
+
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
|
839
|
+
setlocal spellfile=
|
|
840
|
+
setlocal spelllang=en
|
|
841
|
+
setlocal statusline=
|
|
842
|
+
setlocal suffixesadd=.rb
|
|
843
|
+
setlocal swapfile
|
|
844
|
+
setlocal synmaxcol=3000
|
|
845
|
+
if &syntax != 'ruby'
|
|
846
|
+
setlocal syntax=ruby
|
|
847
|
+
endif
|
|
848
|
+
setlocal tabstop=8
|
|
849
|
+
setlocal tags=
|
|
850
|
+
setlocal textwidth=0
|
|
851
|
+
setlocal thesaurus=
|
|
852
|
+
setlocal nowinfixheight
|
|
853
|
+
setlocal nowinfixwidth
|
|
854
|
+
set nowrap
|
|
855
|
+
setlocal nowrap
|
|
856
|
+
setlocal wrapmargin=0
|
|
857
|
+
silent! normal! zE
|
|
858
|
+
1,1fold
|
|
859
|
+
2,3fold
|
|
860
|
+
4,5fold
|
|
861
|
+
6,6fold
|
|
862
|
+
7,8fold
|
|
863
|
+
9,9fold
|
|
864
|
+
10,11fold
|
|
865
|
+
12,16fold
|
|
866
|
+
21,23fold
|
|
867
|
+
19,24fold
|
|
868
|
+
17,27fold
|
|
869
|
+
28,31fold
|
|
870
|
+
32,35fold
|
|
871
|
+
36,37fold
|
|
872
|
+
38,47fold
|
|
873
|
+
56,58fold
|
|
874
|
+
60,63fold
|
|
875
|
+
50,64fold
|
|
876
|
+
48,65fold
|
|
877
|
+
66,74fold
|
|
878
|
+
75,81fold
|
|
879
|
+
12
|
|
880
|
+
normal zo
|
|
881
|
+
17
|
|
882
|
+
normal zo
|
|
883
|
+
19
|
|
884
|
+
normal zo
|
|
885
|
+
21
|
|
886
|
+
normal zo
|
|
887
|
+
19
|
|
888
|
+
normal zo
|
|
889
|
+
17
|
|
890
|
+
normal zo
|
|
891
|
+
28
|
|
892
|
+
normal zc
|
|
893
|
+
32
|
|
894
|
+
normal zo
|
|
895
|
+
38
|
|
896
|
+
normal zo
|
|
897
|
+
48
|
|
898
|
+
normal zo
|
|
899
|
+
50
|
|
900
|
+
normal zo
|
|
901
|
+
56
|
|
902
|
+
normal zo
|
|
903
|
+
60
|
|
904
|
+
normal zo
|
|
905
|
+
50
|
|
906
|
+
normal zc
|
|
907
|
+
48
|
|
908
|
+
normal zc
|
|
909
|
+
66
|
|
910
|
+
normal zo
|
|
911
|
+
75
|
|
912
|
+
normal zo
|
|
913
|
+
let s:l = 41 - ((37 * winheight(0) + 28) / 57)
|
|
914
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
915
|
+
exe s:l
|
|
916
|
+
normal! zt
|
|
917
|
+
41
|
|
918
|
+
normal! 05l
|
|
919
|
+
wincmd w
|
|
920
|
+
exe 'vert 1resize ' . ((&columns * 99 + 99) / 198)
|
|
921
|
+
exe 'vert 2resize ' . ((&columns * 98 + 99) / 198)
|
|
922
|
+
tabnext 2
|
|
923
|
+
if exists('s:wipebuf')
|
|
924
|
+
silent exe 'bwipe ' . s:wipebuf
|
|
925
|
+
endif
|
|
926
|
+
unlet! s:wipebuf
|
|
927
|
+
set winheight=1 winwidth=20 shortmess=filnxtToO
|
|
928
|
+
let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
929
|
+
if file_readable(s:sx)
|
|
930
|
+
exe "source " . fnameescape(s:sx)
|
|
931
|
+
endif
|
|
932
|
+
let &so = s:so_save | let &siso = s:siso_save
|
|
933
|
+
doautoall SessionLoadPost
|
|
934
|
+
unlet SessionLoad
|
|
935
|
+
" vim: set ft=vim :
|
data/bin/moron-hook
CHANGED
data/bin/moron-init
CHANGED
data/lib/moron/command.rb
CHANGED
|
@@ -16,12 +16,7 @@ class Moron::Command
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def run
|
|
19
|
-
|
|
20
|
-
FileUtils.mkdir_p full_path
|
|
21
|
-
Dir.chdir full_path do
|
|
22
|
-
system %[git init --bare > /dev/null]
|
|
23
|
-
end
|
|
24
|
-
end
|
|
19
|
+
create_git_archive(full_path) if git_archive_needed?(full_path)
|
|
25
20
|
exec *command_line
|
|
26
21
|
STDERR.puts "Exec sucked!"
|
|
27
22
|
end
|
|
@@ -46,6 +41,13 @@ class Moron::Command
|
|
|
46
41
|
@user = @args.first
|
|
47
42
|
end
|
|
48
43
|
|
|
44
|
+
def create_git_archive(path)
|
|
45
|
+
FileUtils.mkdir_p path
|
|
46
|
+
Dir.chdir path do
|
|
47
|
+
system %[git init --bare > /dev/null]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
49
51
|
def get_parser
|
|
50
52
|
OptionParser.new do |o|
|
|
51
53
|
o.banner = "Usage: #$0 [options] <user>"
|
|
@@ -64,6 +66,14 @@ class Moron::Command
|
|
|
64
66
|
end
|
|
65
67
|
end
|
|
66
68
|
|
|
69
|
+
def git_archive_needed?(path)
|
|
70
|
+
!File.exists?(path) and receiving_data?
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def receiving_data?
|
|
74
|
+
@command == "git-receive-pack"
|
|
75
|
+
end
|
|
76
|
+
|
|
67
77
|
def parse_ssh_original_command
|
|
68
78
|
raise ShellError, "What do you think I am? A shell?" unless
|
|
69
79
|
ENV.keys.include?(SSH_COMMAND)
|
data/lib/moron/hook.rb
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
1
|
module Moron
|
|
2
2
|
class Hook
|
|
3
|
-
KEY_PREFIX = %[command="
|
|
4
|
-
def initialize(path)
|
|
3
|
+
KEY_PREFIX = %[command="%b %u -r %d",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty]
|
|
4
|
+
def initialize(path, binary_path)
|
|
5
5
|
@path = path
|
|
6
|
+
@binary_path = binary_path
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def run
|
|
10
|
+
if !@path.match(/\.git$/)
|
|
11
|
+
puts "Is this a git repository ?"
|
|
12
|
+
exit 1
|
|
13
|
+
end
|
|
14
|
+
require 'git'
|
|
15
|
+
g = Git.bare(@path)
|
|
16
|
+
t = g.gtree('HEAD^{tree}')
|
|
17
|
+
t = t.subtrees["keydir"]
|
|
18
|
+
File.open File.expand_path("~/.ssh/authorized_keys"), 'w' do |f|
|
|
19
|
+
write_keys(t, f)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
def moron_path
|
|
26
|
+
File.expand_path(File.join(@binary_path, '/../moron'))
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def key_prefix(user)
|
|
30
|
+
KEY_PREFIX.
|
|
31
|
+
gsub('%u', user).
|
|
32
|
+
gsub('%d', File.dirname(@path)).
|
|
33
|
+
gsub('%b', moron_path)
|
|
6
34
|
end
|
|
7
35
|
|
|
8
36
|
def write_keys(tree, f)
|
|
9
37
|
f.puts "# DO NOT EDIT! File autogenerated by moron"
|
|
10
38
|
each_key(tree) do |user, content|
|
|
11
|
-
key_prefix
|
|
12
|
-
f.puts [key_prefix, content] * ' '
|
|
39
|
+
f.puts [key_prefix(user), content] * ' '
|
|
13
40
|
end
|
|
14
41
|
end
|
|
15
42
|
|
|
@@ -22,19 +49,5 @@ module Moron
|
|
|
22
49
|
end
|
|
23
50
|
end
|
|
24
51
|
|
|
25
|
-
def run
|
|
26
|
-
if !@path.match(/\.git$/)
|
|
27
|
-
puts "Is this a git repository ?"
|
|
28
|
-
exit 1
|
|
29
|
-
end
|
|
30
|
-
require 'git'
|
|
31
|
-
g = Git.bare(@path)
|
|
32
|
-
t = g.gtree('HEAD^{tree}')
|
|
33
|
-
t = t.subtrees["keydir"]
|
|
34
|
-
File.open File.expand_path("~/.ssh/authorized_keys"), 'w' do |f|
|
|
35
|
-
write_keys(t, f)
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
52
|
end
|
|
40
53
|
end
|
data/lib/moron/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moron
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LeMarsu
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-08-08 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -45,11 +45,13 @@ extra_rdoc_files:
|
|
|
45
45
|
- COPYING
|
|
46
46
|
- Rakefile
|
|
47
47
|
- README.md
|
|
48
|
+
- Session.vim
|
|
48
49
|
files:
|
|
49
50
|
- CHANGES.md
|
|
50
51
|
- COPYING
|
|
51
52
|
- Rakefile
|
|
52
53
|
- README.md
|
|
54
|
+
- Session.vim
|
|
53
55
|
- lib/moron/command.rb
|
|
54
56
|
- lib/moron/gemspec.rb
|
|
55
57
|
- lib/moron/hook.rb
|