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