V’…‹LŽ–

2005”N06ŒŽ06“ú

vimƒGƒfƒBƒ^‚̐܂肽‚½‚Ý‹@”\‚̘bB‚»‚Ì2 (foldmethod=syntax)

‚Ü‚¸A‘O‰ñ‚Ì•œK‚©‚çB


vimƒGƒfƒBƒ^‚ł́AƒeƒLƒXƒg‚̐܂èô‚Ý‹@”\‚ª”Ží—Þ—pˆÓ‚³‚ê‚��‚āA
foldmethod‚ðÝ’è‚·‚é‚�}‚ƂŁA
ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚ÌŽd‘g‚Ý‚ð•Ï‚¦‚é‚�}‚Æ‚ª‚Å‚«‚Ü‚·B


‚ŁA‚»‚̃tƒH[ƒ‹ƒfƒBƒ“ƒO‚ɂ́A‚�}‚ꂾ‚¯‚ÌŽí—Þ‚ª—pˆÓ‚³‚ê‚��‚Ü‚·B

  • manual

  • indent

  • expr

  • marker

  • syntax

  • diff



ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚̐ݒè‚ðŽÀÛ‚ɕύX‚·‚é‚ɂ́A
:set foldmethod=•ÏX‚µ‚½‚��ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚ÌŽí—Þ

‚Ƃ��‚¤ƒRƒ}ƒ“ƒh‚ðvimƒGƒfƒBƒ^ã‚ÅŽÀs‚·‚é‚©A
vimƒGƒfƒBƒ^‚̐ݒèƒtƒ@ƒCƒ‹‚ɏ‘‚«‚Ü‚·B



ˆÈãA‘O‰ñ‚Ì•œKI‚í‚èB



foldmethod‚Ìsyntax‚́A
vimƒGƒfƒBƒ^‚ŁA‚»‚ꂼ‚ê‚̃tƒ@ƒCƒ‹ƒ^ƒCƒv—p‚É—pˆÓ‚³‚ê‚��‚é
ƒVƒ“ƒ^ƒbƒNƒXƒtƒ@ƒCƒ‹‚̐ݒè‚É
ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚Ì‚â‚è•û‚ð”C‚¹‚é‚Ƃ��‚¤‚à‚Ì‚Å‚·B


‚�}‚̃tƒH[ƒ‹ƒfƒBƒ“ƒO‚ð—˜—p‚·‚é‚ɂ́A
vimƒGƒfƒBƒ^ã‚ŁA
:set foldmethod=syntax

‚Ƃ��‚¤ƒRƒ}ƒ“ƒh‚ðŽÀs‚·‚é‚©A
vimƒGƒfƒBƒ^‚̐ݒèƒtƒ@ƒCƒ‹‚ɁAã‚̃Rƒ}ƒ“ƒh‚ð‘‚«ž‚ñ‚Å‚­‚¾‚³‚��B


‚�}‚̐ݒè‚́Aƒtƒ@ƒCƒ‹ƒ^ƒCƒv‚É‚æ‚Á‚Ä‚Í
ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚ª—pˆÓ‚³‚ê‚��‚Ȃ��  ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚ªs‚í‚ê‚Ȃ��ê‡‚à‚ ‚邵A
ƒtƒ‰ƒO‚ð—��‚ĂȂ��‚Ɓu:set foldmethod=syntaxv‚Ɛݒ肵‚Ä‚à
—LŒø‚É‚È‚ç‚È‚©‚Á‚½‚è‚·‚éê‡‚ª‚ ‚è‚Ü‚·B


‚»‚ꂼ‚ê‚̃tƒ@ƒCƒ‹ƒ^ƒCƒv‚ŁA
ŽÀÛ‚ɂǂ̂悤‚ȃtƒH[ƒ‹ƒfƒBƒ“ƒO‚ªs‚í‚ê‚é‚©‚́A
ŽŽ‚µ‚Ä‚Ý‚é‚Ü‚Å‚í‚©‚è‚Ü‚¹‚ñB


Œ©‚Âç‚��ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚àŒ‹\‘½‚��‚Ì‚Å‚·‚ªA
Ü‚肽‚½‚Ý‚ðŽè‚ł��‚¿‚��‚¿Ý’è‚·‚é‚Ì‚à–Ê“|‚Ȃ̂ŁA
‚»‚ñ‚ȂɈ«‚­‚Ȃ��‘I‘ðŽˆ‚©‚à‚µ‚ê‚Ȃ��‚Å‚·B




ÅŒã‚ÉŽÀs—á‚ðB


—Ⴆ‚΁AXML—p‚̃Vƒ“ƒ^ƒbƒNƒXƒtƒ@ƒCƒ‹‚̃tƒH[ƒ‹ƒfƒBƒ“ƒO‹@”\‚ð—LŒø‚É‚·‚é‚È‚çA
ŽŸ‚̐ݒè‚ðvimƒGƒfƒBƒ^‚̐ݒèƒtƒ@ƒCƒ‹‚ɏ‘‚«ž‚ñ‚Å‚©‚çA
Šg’��Žqxml‚̃tƒ@ƒCƒ‹‚ðvimƒGƒfƒBƒ^‚ÅŠJ‚��‚Ä‚Ý‚Ä‚­‚¾‚³‚��B
:let g:xml_syntax_folding = 1
:set foldmethod=syntax


XML‚̃Vƒ“ƒ^ƒbƒNƒXƒtƒ@ƒCƒ‹‚ł́A«‚�}‚¤‚��‚¤ƒtƒH[ƒ‹ƒfƒBƒ“ƒO‚ªs‚í‚ê‚Ü‚·B

foldmethod_syntax_xml.jpg
XML‚̃Vƒ“ƒ^ƒbƒNƒXƒtƒ@ƒCƒ‹‚É‚æ‚éÜ‚èô‚Ý‚ÌŒ‹‰ÊB
ŠJŽnƒ^ƒO‚ƁA•Â‚��ƒ^ƒO‚ÌŠÔ‚ªÜ‚肽‚½‚Ý‚Å“Z‚ß‚ç‚ê‚éB




–{“ú‚͈ȏã‚Å‚·B
‚ł́[
posted by ï¿½ï¿½Œ© ‘ñ at 03:12| Comment(0) | TrackBack(1) | Ü‚èô‚Ý (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

‚‡Vim(Windows”Å)
Excerpt: –ÚŽŸ –ÚŽŸ ƒo[ƒWƒ‡ƒ“‚Ɛ»‘��”NŒŽ“ú gVim@Windows”Å ŠÖ˜Aƒy[ƒW ŽQlƒTƒCƒg ƒRƒƒ“ƒg ƒ^ƒO ï¿½ï¿½ \ƒo[ƒWƒ‡ƒ“‚Ɛ»‘��”NŒŽ“ú 200..
Weblog: ‰ï¿½L‚ÌŠî’n (PukiWiki/TrackBack 0.3)
Tracked: 2009-04-20 10:15
‹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