All pastes #57988 Raw Edit

jMCg

public text v1 · immutable
#57988 ·published 2006-05-22 12:11 UTC
rendered paste body
 au FileType php comp php |
         \ :abbrev  function /**<CR> Description<CR><CR>@param<CR>@return<CR><BS>/<CR><ESC>A<CR>function() {<CR>}<ESC>kwi |
         \  :abbrev elseif elseif () {<CR>}<ESC>kwa

 au FileType html,xhtml comp tidy
 au FileType php,c,cpp,java :abbrev if if () {<CR>}<ESC>kwa|
                             \ :abbrev else else {<CR>}<ESC>O|
                             \ :abbrev /** /**<CR><CR>*/<ESC>kA |
                             \ :abbrev switch switch ( ) {<CR><CR><TAB>case 'foo' :<CR>break;<CR><CR>default :<CR>break;<CR>}<ESC>kkkkkkkwa |
                             \ :abbrev do do {<CR>} while ();<ESC>hi |
                             \ :abbrev while while () {<CR>}<ESC>kwa |
                             \ :abbrev for for () {<CR>}<ESC>kwa; ; <ESC>hhhi