V’…‹LŽ–

2008”N02ŒŽ05“ú

ƒGƒNƒXƒvƒ[ƒ‰[‚Á‚ۂ��‹““®‚̃AƒvƒŠ‚ðŠÈ’P‚ɍ\’z‚Å‚«‚évimƒXƒNƒŠƒvƒgtlib‚̏Љî

ƒEƒBƒ“ƒhƒE‚𕪊„‚µ‚āA•Ð•û‚̃EƒBƒ“ƒhƒE‚ɉ½‚©‚̃ŠƒXƒg‚ð•\Ž¦A‘I‘ð‚³‚ê‚½‚牽‚©‚̏ˆ—‚ðs‚¤‚Ƃ��‚¤A
ƒtƒ@ƒCƒ‹ƒGƒNƒXƒvƒ[ƒ‰[‚Æ‚©‚Å‚æ‚­‚ ‚é‚t‚h‚ðAŠÈ’P‚ɍ\’z‚Å‚«‚Ä‚µ‚Ü‚¤vimƒXƒNƒŠƒvƒg tlib‚ÌŽg‚��•û‚ð“Ë‚«Ž~‚ß‚½B
ivimƒXƒNƒŠƒvƒg‘g‚ސlˆÈŠO‚ɂ́A–ð‚ɗ��‚½‚Ȃ��î•ñ‚Å‚·‚ªj

tlib_sample_view.jpg

‚ŁA‰º‚ªÅï¿½ï¿½‚̃Tƒ“ƒvƒ‹B
:UndoBranchViewer‚Å‹N“®‚µ‚āA<C-p>‚Å‘I‘ð‚µ‚½s‚̃ƒbƒZ[ƒW‚ð•\Ž¦‚·‚éB
“®‚©‚·‚ɂ́A‚à‚¿‚ë‚ñAtlib‚ª•K—vB

tlib#input#List()‚É•\Ž¦‚·‚é•ï¿½ï¿½Žš—ñ‚̃ŠƒXƒg‚ƁA
‚ǂ̃L[‚ª‰Ÿ‚³‚ꂽ‚çA‚ǂ̃tƒ@ƒ“ƒNƒVƒ‡ƒ“‚ðŒÄ‚яo‚·‚©‚̃}ƒbƒsƒ“ƒO‚ð“n‚·B
key‚ªƒŠƒXƒg‚Ì‘I‘ð‚ÉŽg‚¤ƒL[‚ŁAagent‚ªƒtƒ@ƒ“ƒNƒVƒ‡ƒ“B

ƒXƒNƒŠƒvƒg‚Ì’†‚ÅŽg‚Á‚��‚é tlib#cmd#OutputAsList()‚́A
ƒRƒ}ƒ“ƒh‚ÌŒ‹‰Ê‚�Žš—ñ‚̃ŠƒXƒg‚ðì‚éƒRƒ}ƒ“ƒh‚Å‚·B

" ƒXƒNƒŠƒvƒg‚ª‰½“x‚à“Ç‚Ü‚ê‚é‚Ì‚ð–hŽ~‚·‚邽‚߂̂�N‚܂��‚Ȃ��
:if exists('loaded_undobranch_viewer')
    :finish
:endif
:let loaded_undobranch_viewer = 1

" ƒRƒ}ƒ“ƒh‚Ì’è‹`
" :UndoBranchViewer‚Á‚Ä‚·‚é‚ƁAs:UndoBranchViewer()‚ªŒÄ‚яo‚³‚ê‚éB
:command! -nargs=0 UndoBranchViewer :call s:UndoBranchViewer()

:function! s:UndoBranchViewer()
    :let g:undolistHandlers = [
        \ {'key': 16, 'agent': s:SNR().'AgentUndoPreview', 'key_name': '<c-p>', 'help': 'Undo preview'},
        \ {'key': 21, 'agent': s:SNR().'AgentUndoAndClose', 'key_name': '<c-u>', 'help': 'Undo and close'},
        \ {'pick_last_item': 0},
        \ ]
    :let s:undolists = tlib#cmd#OutputAsList('undolist')
    :call tlib#input#List('s', 'UndoBranch', s:undolists, g:undolistHandlers)
:endfunction

" ƒŠƒXƒg‚©‚ç<c-p>‚Å‘I‘ð‚³‚ê‚½‚Æ‚«‚ɌĂяo‚³‚ê‚éB
:function! s:AgentUndoPreview(world, selected)
    :let l:entry = a:selected[0]
    " ‘I‘ð‚³‚ê‚½•ï¿½ï¿½Žš‚ð•\Ž¦B
    :echo l:entry
    " •ï¿½ï¿½Žš‚ð•\Ž¦‚Å‚«‚é‚悤‚ɁA‚¿‚å‚Á‚Æ‘Ò‚Á‚Ä‚à‚炤B
    :5sleep
    :return a:world
:endfunction

" ƒŠƒXƒg‚©‚ç<c-u>‚Å‘I‘ð‚³‚ê‚½‚Æ‚«‚ɌĂяo‚³‚ê‚éB
" à–¾‚͏ȗª
:function! s:AgentUndoAndClose(world, selected)
    :return a:world
:endfunction

" tlib‚̃ŠƒXƒg‚łǂꂪ‘I‘ð‚³‚ê‚½‚©‚ð“Á’è‚·‚邽‚߂̕��Žš‚ð•Ô‚·
:function! s:SNR()
    :return matchstr(expand('<sfile>'), '<SNR>\d\+_\zeSNR$')
:endfunction
posted by ï¿½ï¿½Œ© ‘ñ at 01:17| Comment(0) | TrackBack(0) | Šî–{ (vimƒGƒfƒBƒ^) | ‚}‚̃uƒƒO‚Ì“ÇŽÒ‚É‚È‚é | XVî•ñ‚ðƒ`ƒFƒbƒN‚·‚é
‚�}‚Ì‹LŽ–‚ւ̃Rƒƒ“ƒg
ƒRƒƒ“ƒg‚ð‘‚­
‚�N–¼‘O:

ƒ[ƒ‹ƒAƒhƒŒƒX:

ƒz[ƒ€ƒy[ƒWƒAƒhƒŒƒX:

ƒRƒƒ“ƒg:

¦ƒuƒƒOƒI[ƒi[‚ª³”F‚µ‚½ƒRƒƒ“ƒg‚Ì‚Ý•\Ž¦‚³‚ê‚Ü‚·B

‚�}‚Ì‹LŽ–‚ւ̃gƒ‰ƒbƒNƒoƒbƒN
‹LŽ–ŒŸõ
 
ƒJƒeƒSƒŠ
Å‹ß‚̃Rƒƒ“ƒg
QKC‚̃Cƒ“ƒXƒg[ƒ‹ [3-4/18]
@Ë kova (05/23)
calendar.vim‚É‚Í“ú‹L‚ð‚‚¯‚é‹@”\‚ª‚ ‚Á‚½‚炵‚��B
@Ë ‚Æ‚Ü‚Æ (03/07)
Å‹ß‚æ‚­Œ©‚é‚悤‚É‚È‚Á‚½vimƒXƒNƒŠƒvƒg‚̃Rƒƒ“ƒg‚̏‘‚«•û
@Ë ï¿½ï¿½Œ© ‘ñ (02/13)
@Ë kana (02/11)
vimƒGƒfƒBƒ^ ƒwƒ‹ƒv‚Ìgrep
@Ë ‚Ý‚©‚ñ (07/15)
Žw’肵‚½ƒJƒ‰ƒ€ˆÊ’u‚ɃeƒLƒXƒg‚ð—��‚µž‚Þ (vimƒGƒfƒBƒ^)
@Ë ‚�}‚Ý (03/20)
@Ë ‚Ƃ�N‚è‚·‚ª‚è (03/19)
@Ë ‚�}‚Ý (03/18)
@Ë takayama (03/18)
tempfile -- Generate temporary files (Mac OSX)
@Ë take3 (01/20)
@Ë ‚�}‚Ý (01/19)
@Ë take3 (01/18)
@Ë ‚�}‚Ý (01/17)
@Ë take3 (01/14)
WebObjects‚̃I[ƒvƒ“ƒ\[ƒXƒvƒƒWƒFƒNƒg Project Wonder‚Á‚Ä‚È‚ñ‚��‚á‚ë‚ȁB#2
@Ë (06/30)
@Ë Tetsuya Kuramochi (06/29)
@Ë Tetsuya Kuramochi (06/29)
WebObjects‚̃I[ƒvƒ“ƒ\[ƒXƒvƒƒWƒFƒNƒg Project Wonder‚Á‚Ä‚È‚ñ‚��‚á‚ë‚ȁB#1
@Ë (06/03)
@Ë Tetsuya Kuramochi (06/02)
Å‹ß‚̃gƒ‰ƒbƒNƒoƒbƒN
vimƒGƒfƒBƒ^‚Łu•ï¿½ï¿½ŽšƒR[ƒhA‰üsƒR[ƒh‚ð•ÏX‚µ‚ĕۑ��‚·‚éBv
@Ë window.closed (04/25)
@Ë himesukefs STEP-log (03/18)
@Ë PukiWiki/TrackBack 0.2 (05/07)
vimƒGƒfƒBƒ^‚̐܂肽‚½‚Ý‹@”\‚̘bB‚»‚Ì2 (foldmethod=syntax)
@Ë ‰ï¿½L‚ÌŠî’n (PukiWiki/TrackBack 0.3) (04/20)
ƒƒOƒtƒ@ƒCƒ‹‚ðŠÄŽ‹‚µ‚āA“Á’è‚̃L[ƒ[ƒh‚ªŒ©‚‚©‚Á‚½‚çA‰½‚ç‚©‚̃Rƒ}ƒ“ƒh‚ðŽÀs‚·‚éB
@Ë Apple Fan (10/16)
ƒtƒ@ƒCƒ‹•Û‘��ƒ_ƒCƒAƒƒO‚̏‰ŠúƒfƒBƒŒƒNƒgƒŠ‚ɂ‚��‚Ă̘b (vimƒGƒfƒBƒ^˜b)
@Ë ƒiƒŒƒbƒWƒG[ƒX (07/23)
:e <C-x> (•ÒW’†‚̃tƒ@ƒCƒ‹‚Æ“¯‚��ƒfƒBƒŒƒNƒgƒŠ‚É‚ ‚éƒtƒ@ƒCƒ‹‚ðŠJ‚­B)
@Ë ƒ{ƒNƒmƒX (02/07)
Opening many files using wildcards.
@Ë PukiWiki Plus! (PukiWiki/TrackBack 0.4) (10/28)
@Ë ìoE-Ejƒ2nd life (07/18)
vimƒGƒfƒBƒ^‚ňóüŽ©—RŽ©Ý ‚»‚Ì8 -ƒGƒfƒBƒ^‚©‚ç‚Ì’¼Ú‚̈óü‚Ì‘ã‚í‚è‚ɁA2html.vimƒXƒNƒŠƒvƒg‚ðŽg—p‚·‚é-
@Ë Knoppix Temporary Directory (PukiWiki/TrackBack 0.3) (02/19)
ŒŸõ‚Ń}ƒbƒ`‚µ‚½‘Ώۂɑ΂µ‚āA’uŠ·‚ðs‚¤B(vimƒGƒfƒBƒ^˜b)
@Ë 123net :: ŠJ”­“ú‹L (12/31)
‚²‚Ý” ‚Ƀtƒ@ƒCƒ‹‚ð’@‚«ž‚ÞƒXƒNƒŠƒvƒgB(vimƒGƒfƒBƒ^)
@Ë "OSX" .app's :Mac‚̃AƒvƒŠ‚ð•Ö—˜AŠï¿½L“®A–Ê”’‚ðƒx[ƒX‚É‚Ù‚Ú“úŠï¿½ï¿½‚ŏЉîB (11/26)
ƒp[ƒZƒ“ƒgA%Apercent ‚ł̃J[ƒ\ƒ‹ˆÚ“® (vimƒGƒfƒBƒ^˜b)
@Ë ƒvƒƒOƒ‰ƒ~ƒ“ƒOŒ¾Œê (10/11)
‰ß‹ŽƒƒO
Profile
ï¿½ï¿½Œ© ‘ñ
[email protected]
ï¿½ï¿½Œ©‚Ɛ\‚µ‚Ü‚·B
_“ސì‚Ńfƒxƒƒbƒp[‚â‚Á‚Ä‚Ü‚·B
–¼–³‚µ‚ÌVIMŽg‚‘

RSS 1.0


�~

‚�}‚̍L‚Í90“úˆÈãV‚µ‚��‹LŽ–‚Ì“Še‚ª‚Ȃ�� ƒuƒƒO‚É•\Ž¦‚³‚ê‚�N‚è‚Ü‚·B