143 augroup filetypedetect 144 au BufRead *.html set filetype=htmlm4 145 au BufNewFile,BufRead,BufEnter *.java \\ 146 :iab sss System.out.println();hha\\ 147 :iab psvm public static void main(String args[])\\ 148 :set makeprg=javac\ %\\ 149 :imap :w:make\\ 150 :map :w:make\\ 151 :map :!java -cp %:p:h %:t:r \\ 152 :imap :!java -cp %:p:h %:t:r 153 au BufNewFile,BufRead,BufEnter *.pl \ 154 :map :w:!perl %\ 155 :map :w:!perl -w %\ 156 :imap :w:!perl -w %\ 157 au BufNewFile,BufRead *.sc source /home/mercury1/crs/vim/share/vim/syntax/c.vim 158 au BufNewFile,BufRead,BufEnter *.c \ 159 :imap ppp printf("\n");hhhhi \ 160 :map :set makeprg=g++\ %:w:make \ 161 :imap :set makeprg=g++\ %:w:make \ 162 :map :w:!cc % -o %:t:r \ 163 :map :!%:t:r \ 164 :imap :w:!cc % -o %:t:r \ 165 :imap :!%:t:r \ 166 augroup END