alfs.vim improved

Neven Has haski at sezampro.yu
Thu Dec 12 11:40:06 PST 2002


Just to break the silence a bit. :)

Changes are in the comments. The main one is indentation - the right
thing should happen now. It's not too pretty, but it works. Not for
Vim < 6.x though, because of "gi" (if anyone knows a better way, let
me know).


Neven
-------------- next part --------------
"
" Vim file for making the creation of ALFS profiles easier.
" Written by Neven Has <haski at sezampro.yu>.
" 
" Changes
" -------
"  +  <unpack> fixed
"  +  indentation added (using the characters before the cursor)
"  +  added 3.0 to <alfs> version
"  +  <reference> added to <unpack>, and <digest> as a separate mapping
"

imap <M-a>alf 
	\<Space><Esc>"iy0gi<Left><Del>
	\<alfs version="3.0"><CR>
	\<Esc>"ipa
	\<Tab><CR>
	\<Esc>"ipa
	\</alfs><Up><End>

imap <M-a>che 
	\<Space><Esc>"iy0gi<Left><Del>
	\<check></check>

imap <M-a>con 
	\<Space><Esc>"iy0gi<Left><Del>
	\<configure base=""><CR>
	\<Esc>"ipa
	\<Tab><param></param><CR>
	\<Esc>"ipa
	\</configure>

imap <M-a>cop 
	\<Space><Esc>"iy0gi<Left><Del>
	\<copy><CR>
	\<Esc>"ipa
	\<Tab><source></source><CR>
	\<Esc>"ipa
	\<Tab><destination></destination><CR>
	\<Esc>"ipa
	\</copy>

imap <M-a>exe 
	\<Space><Esc>"iy0gi<Left><Del>
	\<execute command="" base=""><CR>
	\<Esc>"ipa
	\<Tab><param></param><CR>
	\<Esc>"ipa
	\</execute>

imap <M-a>lin 
	\<Space><Esc>"iy0gi<Left><Del>
	\<link base=""><CR>
	\<Esc>"ipa
	\<Tab><target></target><CR>
	\<Esc>"ipa
	\<Tab><name></name><CR>
	\<Esc>"ipa
	\</link>

imap <M-a>mak 
	\<Space><Esc>"iy0gi<Left><Del>
	\<make base=""><CR>
	\<Esc>"ipa
	\<Tab><param></param><CR>
	\<Esc>"ipa
	\</make>

imap <M-a>mkd 
	\<Space><Esc>"iy0gi<Left><Del>
	\<mkdir base=""><CR>
	\<Esc>"ipa
	\<Tab><name></name><CR>
	\<Esc>"ipa
	\</mkdir>

imap <M-a>mov 
	\<Space><Esc>"iy0gi<Left><Del>
	\<move><CR>
	\<Esc>"ipa
	\<Tab><source></source><CR>
	\<Esc>"ipa
	\<Tab><destination></destination><CR>
	\<Esc>"ipa
	\</move>

imap <M-a>own 
	\<Space><Esc>"iy0gi<Left><Del>
	\<ownership user="" group=""><CR>
	\<Esc>"ipa
	\<Tab><name></name><CR>
	\<Esc>"ipa
	\</ownership>

imap <M-a>pac 
	\<Space><Esc>"iy0gi<Left><Del>
	\<package name="" version=""><CR>
	\<Esc>"ipa
	\</package>

imap <M-a>pat 
	\<Space><Esc>"iy0gi<Left><Del>
	\<patch base=""><CR>
	\<Esc>"ipa
	\<Tab><param>-N</param><CR>
	\<Esc>"ipa
	\<Tab><param>-p1</param><CR>
	\<Esc>"ipa
	\<Tab><param>-i </param><CR>
	\<Esc>"ipa
	\</patch>

imap <M-a>per 
	\<Space><Esc>"iy0gi<Left><Del>
	\<permissions base="" mode=""><CR>
	\<Esc>"ipa
	\<Tab><name></name><CR>
	\<Esc>"ipa
	\</permissions>

imap <M-a>rem 
	\<Space><Esc>"iy0gi<Left><Del>
	\<remove></remove>

imap <M-a>sea 
	\<Space><Esc>"iy0gi<Left><Del>
	\<search_replace><CR>
	\<Esc>"ipa
	\<Tab><file></file><CR>
	\<Esc>"ipa
	\<Tab><find></find><CR>
	\<Esc>"ipa
	\<Tab><replace></replace><CR>
	\<Esc>"ipa
	\</search_replace>

imap <M-a>sta 
	\<Space><Esc>"iy0gi<Left><Del>
	\<stage name=""><CR>
	\<Esc>"ipa
	\<Tab><stageinfo><CR>
	\<Esc>"ipa
	\<Tab><Tab><base></base><CR>
	\<Esc>"ipa
	\<Tab></stageinfo><CR>
	\<Esc>"ipa
	\</stage>

imap <M-a>stm 
	\<Space><Esc>"iy0gi<Left><Del>
	\<stamp name="" version=""/>

imap <M-a>tex 
	\<Space><Esc>"iy0gi<Left><Del>
	\<textdump><CR>
	\<Esc>"ipa
	\<Tab><file></file><CR>
	\<Esc>"ipa
	\<Tab><content><CR>
	\<Esc>"ipa
	\<Tab><Tab>=<CR>
	\<Esc>"ipa
	\<Tab></content><CR>
	\<Esc>"ipa
	\</textdump>

imap <M-a>unp 
	\<Space><Esc>"iy0gi<Left><Del>
	\<unpack><CR>
	\<Esc>"ipa
	\<Tab><reference></reference><CR>
	\<Esc>"ipa
	\<Tab><archive></archive><CR>
	\<Esc>"ipa
	\<Tab><destination></destination><CR>
	\<Esc>"ipa
	\</unpack>

imap <M-a>dig 
	\<digest></digest>


More information about the alfs-discuss mailing list