
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.47 KB | hits: 12 | expires: Never
Vim inoremap for specific filetypes
inoremap ( ()<Esc>i
inoremap { {<CR>}<Esc>ko
inoremap <? <?php ?><Esc><Left>i
autocmd FileType php,c,java inoremap ( ()<Esc>i
autocmd FileType php inoremap <buffer> ( ()<Esc>i
inoremap <buffer> ( ()<Esc>i
inoremap <buffer> { {<CR>}<Esc>ko
inoremap <buffer> <? <?php ?><Esc><Left>i
~/.vim/ftplugin/php.vim
~/.vim/after/ftplugin/php.vim
autocmd FileType php call Inoremaps()
fu! Inoremaps()
inoremap ...
endfu