Created
April 8, 2011 10:14
-
-
Save oelmekki/909598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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