Wiki: Falling Cow


I use vim for all my coding needs (perl, HTML, VB, proprietary). I can usually be found in the channel weekdays, Central Time(US).

One of my favorite functions/maps: <verbatim> " SelectAIQuote(ai, qtype) - Visually selects a/i quotes and double quotes " Much of this written by Tofer function! <Sid>SelectAIQuote(ai, qtype)

let re = a:qtype . '\(\(\\.\|[^' . a:qtype . '\\]\)*\)' . a:qtype let txt = getline(".") let pos = col(".") let me = 0 while me > -1 && me < pos

let mb = me let me = matchend(txt,re,mb)

endwhile let mb = match(txt,re,mb) if me > -1 && mb < pos

call cursor(line("."),mb+2) exec("norm v") call cursor(line("."),me-1) if a:ai == "a"

normal loho

endif

else

exec("norm v")

endif

endfunction nnoremap vi" :call <Sid>SelectAIQuote('i','"')<Cr> nnoremap va" :call <Sid>SelectAIQuote('a','"')<Cr> nnoremap vi' :call <Sid>SelectAIQuote('i',"'")<Cr> nnoremap va' :call <Sid>SelectAIQuote('a',"'")<Cr> nnoremap yi" :call <Sid>SelectAIQuote('i','"')<Cr>y nnoremap ya" :call <Sid>SelectAIQuote('a','"')<Cr>y nnoremap yi' :call <Sid>SelectAIQuote('i',"'")<Cr>y nnoremap ya' :call <Sid>SelectAIQuote('a',"'")<Cr>y nnoremap ci" :call <Sid>SelectAIQuote('i','"')<Cr>c nnoremap ca" :call <Sid>SelectAIQuote('a','"')<Cr>c nnoremap ci' :call <Sid>SelectAIQuote('i',"'")<Cr>c nnoremap ca' :call <Sid>SelectAIQuote('a',"'")<Cr>c </verbatim> <verbatim> " These maps enable commenting and uncommenting code with ,c+ and ,c- " They use &commentstring to determine comment type " Basically, it puts the line in the place of the %s. autocmd FileType * exe "nmap <buffer> ,c- :<Home>let oldslash=@/<Bar>let oldlz=&lz<Bar>set lz<Bar><End>s/^" . substitute(escape(&cms,"\\()*/"), "%s", "\\\\(.*\\\\)", ) . "/\\1/e" . "<Bar>noh<Bar>let @/=oldslash<Bar>let &lz=oldlz<Cr>" autocmd FileType * exe "nmap <buffer> ,c+ :<Home>let oldslash=@/<Bar>let oldlz=&lz<Bar>set lz<Bar><End>s/^\\(.*\\)$/" . substitute(escape(&cms,'\/'), "%s", '\&', ) . "/e" . "<Bar>noh<Bar>let @/=oldslash<Bar>let &lz=oldlz<Cr>" autocmd FileType * exe "vmap <buffer> ,c- :<Home>let oldslash=@/<Bar>let oldlz=&lz<Bar>set lz<Bar><End>s/^" . substitute(escape(&cms,"\\()*/"), "%s", "\\\\(.*\\\\)", ) . "/\\1/e" . "<Bar>noh<Bar>let @/=oldslash<Bar>let &lz=oldlz<Cr>" autocmd FileType * exe "vmap <buffer> ,c+ :<Home>let oldslash=@/<Bar>let oldlz=&lz<Bar>set lz<Bar><End>s/^\\(.*\\)$/" . substitute(escape(&cms,'\/'), "%s", '\&', ) . "/e" . "<Bar>noh<Bar>let @/=oldslash<Bar>let &lz=oldlz<Cr>"

</verbatim>

<small>P? hairy bush pussy hairy wife hairy wife hairy women sites atk gallery the atk galleria

latina blow job blow job sex video the best blow job latina blow job blow job picture rate blow job

schemale chicks with huge dicks tranny schemale blowjobs cunts

kinky clothes hot kinky sex kink club kappers kinky phone sex kinky slut

lesbiens black lesbiens black lesbiens black lesbiens hot lesbiens rencontre lesbien

tgp bdsm bdsm master fesrouge s&m sm chat bondage paper

fucking grandmother granny xxx movies granny old pussy granny old pussy grannies pics grandmothers house

henti xxx manga hentay hentai images hentai images hentai cumshot one piece hentay

tgp bdsm bdsm master fesrouge s&m sm chat bondage paper

</small>


Copyright © 2007 RobertMelton.com