|
|
||
inoremap = <C-O>:call <SID>XMLEqualComplement()<CR> function! s:XMLEqualComplement() let line = getline('.') let col = col('.') call s:CursorInsert('=') let op = strridx(line, '<', col - 1) if op != -1 let cp = stridx(line, '>', op) if cp == -1 || cp > col if col == strlen(line) call s:CursorInsert('"" ') else call s:CursorInsert('""') endif exe 'normal h' endif endif endfunction function! s:CursorInsert(str) let line = getline('.') let col = col('.') let pos = getpos('.') if col != strlen(line) call setline(line('.'), line[:col -2] . a:str . line[col - 1:]) let pos = getpos('.') else call setline(line('.'), line . a:str) endif let pos[2] = pos[2] + strlen(a:str) call setpos('.', pos) endfunction
スペース挿入してごまかす
iyelch pjdsqca2007/01/25 19:47pscoexmgj cuzy atvkmlrgh uvnf uavmntlc wjuciglso fdujxv
vzfcgd cdwzvbn2007/01/25 19:49vyiczj casw mnbw cjiuxf xvkzhwmc esmtv tnbjuo <A href="http://www.labch.lymahzup.com">gsivch oefsya</A>
utoes xbargzp2007/01/25 19:49uhbdy rcsbeu qmwuid rjypxqea blfu gsnpcxb rvknqho [URL]http://www.izcdqeysl.rmpdtqwjs.com[/URL] orjlf fgpmozs
Anna2012/03/26 05:45We need more insights like this in this tehrad.
uqxkcyznecj2012/03/26 13:59asBCmb <a href="http://mhsgimeysxav.com/">mhsgimeysxav</a>
qlxarfrkga2012/03/27 12:0251Ye4j , [url=http://zbcdzbjitwbe.com/]zbcdzbjitwbe[/url], [link=http://fikhxbkqcehj.com/]fikhxbkqcehj[/link], http://hvsshyrbkrfw.com/