alfs.vim improved

Neven Has haski at sezampro.yu
Thu Dec 19 08:20:20 PST 2002


Cursor is now positioned on the first "editable" part of the inserted
element.


Neven
-------------- next part --------------
"
" Vim script for creating ALFS profiles.
" 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
"  +  removed "i (storing indentation characters in unnamed register now)
"  +  replaced <Esc>pa with <C-R>" and joined with the next line
"  +  jumping to the Right Place after adding element added
"

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

imap <M-a>che 
	\<check></check>
	\<C-O>?</check><CR>

imap <M-a>con 
	\<Space><Esc>y0gi<Left><Del>
	\<configure base=""><CR>
	\<C-R>"<Tab><param></param><CR>
	\<C-R>"</configure>
	\<C-O>?"><CR>

imap <M-a>cop 
	\<Space><Esc>y0gi<Left><Del>
	\<copy><CR>
	\<C-R>"<Tab><source></source><CR>
	\<C-R>"<Tab><destination></destination><CR>
	\<C-R>"</copy>
	\<C-O>?</source<CR>

imap <M-a>exe 
	\<Space><Esc>y0gi<Left><Del>
	\<execute command="" base=""><CR>
	\<C-R>"<Tab><param></param><CR>
	\<C-R>"</execute>
	\<C-O>?" base<CR>

imap <M-a>lin 
	\<Space><Esc>y0gi<Left><Del>
	\<link base=""><CR>
	\<C-R>"<Tab><target></target><CR>
	\<C-R>"<Tab><name></name><CR>
	\<C-R>"</link>
	\<C-O>?"><CR>

imap <M-a>mak 
	\<Space><Esc>y0gi<Left><Del>
	\<make base=""><CR>
	\<C-R>"<Tab><param></param><CR>
	\<C-R>"</make>
	\<C-O>?"><CR>

imap <M-a>mkd 
	\<Space><Esc>y0gi<Left><Del>
	\<mkdir base=""><CR>
	\<C-R>"<Tab><name></name><CR>
	\<C-R>"</mkdir>
	\<C-O>?"><CR>

imap <M-a>mov 
	\<Space><Esc>y0gi<Left><Del>
	\<move><CR>
	\<C-R>"<Tab><source></source><CR>
	\<C-R>"<Tab><destination></destination><CR>
	\<C-R>"</move>
	\<C-O>?</source<CR>

imap <M-a>own 
	\<Space><Esc>y0gi<Left><Del>
	\<ownership user="" group=""><CR>
	\<C-R>"<Tab><name></name><CR>
	\<C-R>"</ownership>
	\<C-O>?" group<CR>

imap <M-a>pac 
	\<Space><Esc>y0gi<Left><Del>
	\<package name="" version=""><CR>
	\<C-R>"</package>
	\<C-O>?" version<CR>

imap <M-a>pat 
	\<Space><Esc>y0gi<Left><Del>
	\<patch base=""><CR>
	\<C-R>"<Tab><param>-N</param><CR>
	\<C-R>"<Tab><param>-p1</param><CR>
	\<C-R>"<Tab><param>-i </param><CR>
	\<C-R>"</patch>
	\<C-O>?"><CR>

imap <M-a>per 
	\<Space><Esc>y0gi<Left><Del>
	\<permissions base="" mode=""><CR>
	\<C-R>"<Tab><name></name><CR>
	\<C-R>"</permissions>
	\<C-O>?" mode<CR>

imap <M-a>rem 
	\<Space><Esc>y0gi<Left><Del>
	\<remove></remove>
	\<C-O>?</remove<CR>

imap <M-a>sea 
	\<Space><Esc>y0gi<Left><Del>
	\<search_replace><CR>
	\<C-R>"<Tab><file></file><CR>
	\<C-R>"<Tab><find></find><CR>
	\<C-R>"<Tab><replace></replace><CR>
	\<C-R>"</search_replace>
	\<C-O>?</file<CR>

imap <M-a>sta 
	\<Space><Esc>y0gi<Left><Del>
	\<stage name=""><CR>
	\<C-R>"<Tab><stageinfo><CR>
	\<C-R>"<Tab><Tab><base></base><CR>
	\<C-R>"<Tab></stageinfo><CR>
	\<C-R>"</stage>
	\<C-O>?"><CR>

imap <M-a>stm 
	\<Space><Esc>y0gi<Left><Del>
	\<stamp name="" version=""/>
	\<C-O>?" version<CR>

imap <M-a>tex 
	\<Space><Esc>y0gi<Left><Del>
	\<textdump><CR>
	\<C-R>"<Tab><file></file><CR>
	\<C-R>"<Tab><content><CR>
	\<C-R>"<Tab><Tab>=<CR>
	\<C-R>"<Tab></content><CR>
	\<C-R>"</textdump>
	\<C-O>?</file<CR>

imap <M-a>unp 
	\<Space><Esc>y0gi<Left><Del>
	\<unpack><CR>
	\<C-R>"<Tab><reference></reference><CR>
	\<C-R>"<Tab><archive></archive><CR>
	\<C-R>"<Tab><destination></destination><CR>
	\<C-R>"</unpack>
	\<C-O>?</reference<CR>

imap <M-a>dig 
	\<digest></digest>
	\<C-O>?</digest<CR>


More information about the alfs-discuss mailing list