Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created April 8, 2011 10:14
Show Gist options
  • Save oelmekki/909598 to your computer and use it in GitHub Desktop.
Save oelmekki/909598 to your computer and use it in GitHub Desktop.
func Coding_php()
iab <silent> ife if ( )<Left><Left><C-R>=Eatchar('\s')<CR>
iab <silent> functione function ( )<Left><Left><Left><C-R>=Eatchar('\s')<CR>
iab <silent> fore for ( )<Left><Left><C-R>=Eatchar('\s')<CR>
iab <silent> foreache foreach ( )<Left><Left><C-R>=Eatchar('\s')<CR>
iab <silent> switche switch ( )<Left><Left><C-R>=Eatchar('\s')<CR>
iab <silent> whilee while ( )<Left><Left><C-R>=Eatchar('\s')<CR>
" iab <silent> {e {<return>}<return><up><up><esc>A<C-R>=Eatchar('\s')<CR>
iab <silent> LOGe error_log( "" );<Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
set foldmethod=indent
nnoremap <C-c> :PHPCheck<CR>
inoremap <C-c> <esc>:PHPCheck<CR>
endfunc
autocmd FileType php call Coding_php()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment