E37: No write since last change (add ! to override)

2006-09-05

="" 挿入 17:27

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
			call s:CursorInsert('""')
		endif
	endif
endfunction

function! s:CursorInsert(str)
	let line = getline('.')
	let col  = col('.')
	let pos  = getpos('.')

	if col == strlen(line)
		exe 'normal! a' . a:str
	else
		exe 'normal! i' . a:str
		normal l
	endif
endfunction

結局こんなんにした。挿入したあとに normal h するのはうまくいかない。

test

DenDrickyDenDricky 2018/04/26 08:37 Levitra Generico Contrareembolso <a href=http://cheapciali.com>buy cialis</a> Cipro And Keflex Cialis In Offerta

MatrareMatrare 2018/10/13 01:52 Buy Propecia In Ontario Amoxicillin And Diphenhydramine Hci Interactions <a href=http://cialicheap.com>cialis</a> Amoxicillin Buy Buy Cialis Soft Tabs Online

WilliamMeacyWilliamMeacy 2019/02/02 11:26 acheter cialis generique
cheap cialis super active.com
<a href=https://kellyannehulme.com>20 mg cialis buy</a>
side effects for cialis
overnight cialis canada
https://greatwinesgrandhouses.com
cheapest generic cialis online
cialis daily use coupon
<a href=https://kellyannehulme.com>Cialis 20 mg cheap price</a>
shop for cialis
cialis madrid
https://kellyannehulme.com

WilliamMeacyWilliamMeacy 2019/02/02 11:26 cialis for once daily use reviews
cialis online sicuro opinioni
<a href=https://kellyannehulme.com>cialis buy online</a>
ajanta pharma cialis review
generic cialis overnight delivery 100mg
https://kellyannehulme.com
purchasing cialis online
cialis tadalafil lilly
<a href=https://kellyannehulme.com>20 mg cialis buy</a>
canadian pharmacy cialis generic
cialis in der apotheke
https://greatwinesgrandhouses.com

ArnoldvagArnoldvag 2019/02/05 20:50 achat cialis sans ordonnance
buying cialis in turkey
<a href="http://cialisfurr.com">buy cialis</a>
cialis half life
buy cialis soft tabs
<a href="http://cialisfurr.com">Buy Cheap Cialis</a>
sam's club cialis price
what prescription plans cover cialis
<a href="http://cialisfurr.com">Cheap Cialis</a>

ArnoldvagArnoldvag 2019/02/05 20:51 discreet cialis meds
buy cialis greece
<a href="http://cialisfurr.com">Cheap Cialis</a>
cialis erectile
cialis pbs cost
<a href="http://cialisfurr.com">Cheap Cialis</a>
cialis or vardenafil 20mg tablet
cialis price amazon
<a href="http://cialistlm.com">Buy Cialis Online</a>

elohiipcitelohiipcit 2019/03/04 04:35 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin Without Prescription</a> http://theprettyguineapig.com/amoxicillin/

afozezefrafozezefr 2019/03/04 04:55 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin No Prescription <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin 500 Mg</a> http://theprettyguineapig.com/amoxicillin/

eyibkulieyibkuli 2019/03/04 09:19 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin For Sale <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin 500 Mg</a> http://theprettyguineapig.com/amoxicillin/

ejarayiqqlahmejarayiqqlahm 2019/03/15 19:09 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin Without Prescription <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin Without Prescription</a> http://theprettyguineapig.com/amoxicillin/

apeimoyuvapeimoyuv 2019/03/15 19:20 http://theprettyguineapig.com/amoxicillin/ - Amoxil <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin 500mg Capsules</a> http://theprettyguineapig.com/amoxicillin/

uduqabasejuduqabasej 2019/03/22 11:14 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin Without Prescription</a> http://theprettyguineapig.com/amoxicillin/

uqegalecumuqegalecum 2019/03/22 16:47 http://theprettyguineapig.com/amoxicillin/ - Buy Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin Without Prescription</a> http://theprettyguineapig.com/amoxicillin/

zineyirizineyiri 2019/03/22 16:59 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin No Prescription <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin 500mg Capsules</a> http://theprettyguineapig.com/amoxicillin/

ihejulcibcaqihejulcibcaq 2019/03/25 04:37 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin Without Prescription <a href="http://theprettyguineapig.com/amoxicillin/">Generic Amoxicillin 500 Mg</a> http://theprettyguineapig.com/amoxicillin/

iqowuhiicaquiqowuhiicaqu 2019/03/25 04:52 http://theprettyguineapig.com/amoxicillin/ - Buy Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin</a> http://theprettyguineapig.com/amoxicillin/

iquqidiiquqidi 2019/03/25 09:24 http://theprettyguineapig.com/amoxicillin/ - Buy Amoxicillin Online <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin</a> http://theprettyguineapig.com/amoxicillin/

ijakegovuijakegovu 2019/03/25 09:38 http://theprettyguineapig.com/amoxicillin/ - Buy Amoxicillin Online <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin 500mg</a> http://theprettyguineapig.com/amoxicillin/

upsoqitepupsoqitep 2019/04/01 19:46 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin For Sale <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin</a> hgr.aaea.vim.g.hatena.ne.jp.bsd.rj http://theprettyguineapig.com/amoxicillin/

umiikodabihigumiikodabihig 2019/04/01 19:57 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin 500mg <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin</a> pnw.afqt.vim.g.hatena.ne.jp.edz.fg http://theprettyguineapig.com/amoxicillin/

exebibupitqexebibupitq 2019/04/01 22:21 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin Online <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin Online</a> pja.yvhk.vim.g.hatena.ne.jp.zvh.rx http://theprettyguineapig.com/amoxicillin/

oxeutobehufoxeutobehuf 2019/04/06 13:42 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin 500mg Capsules <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin</a> gpp.tvtp.vim.g.hatena.ne.jp.slm.bk http://theprettyguineapig.com/amoxicillin/

oopahelacepoopahelacep 2019/04/06 14:16 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin 500mg Capsules <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin For Sale</a> ils.wbnf.vim.g.hatena.ne.jp.jfo.fh http://theprettyguineapig.com/amoxicillin/

olgezojuwujovolgezojuwujov 2019/04/27 17:46 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin Without Prescription <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin No Prescription</a> ckh.yjwi.vim.g.hatena.ne.jp.lfe.um http://theprettyguineapig.com/amoxicillin/

umecimunipuivumecimunipuiv 2019/04/27 18:21 http://theprettyguineapig.com/amoxicillin/ - Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Buy Amoxicillin Online</a> dpc.xaag.vim.g.hatena.ne.jp.okd.hj http://theprettyguineapig.com/amoxicillin/

iuzuoheiuzuohe 2019/05/23 09:19 http://mewkid.net/buy-amoxicillin/ - Amoxicillin 500 Mg <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin Without Prescription</a> acr.yxbg.vim.g.hatena.ne.jp.nbo.wb http://mewkid.net/buy-amoxicillin/

epifemupocoseepifemupocose 2019/05/23 09:44 http://mewkid.net/buy-amoxicillin/ - Amoxicillin 500 Mg <a href="http://mewkid.net/buy-amoxicillin/">Buy Amoxicillin Online</a> vbm.tbnn.vim.g.hatena.ne.jp.zjl.ch http://mewkid.net/buy-amoxicillin/

ゲスト



トラックバック - http://vim.g.hatena.ne.jp/cho45/20060905