291 autocmd FileType perl call PerlSettings() |
291 autocmd FileType perl call PerlSettings() |
292 |
292 |
293 " preload templates into new buffers by file extension |
293 " preload templates into new buffers by file extension |
294 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template |
294 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template |
295 |
295 |
296 " simple strip trailing whitespace on save |
296 " Set file marks by "category" on switch-away |
297 "autocmd BufWritePre *.pl,*.rb,*.js,*.css,*.md :%s/\s+$//e |
297 autocmd BufLeave *.css,*,less,*.scss normal! mC |
298 |
298 autocmd BufLeave *.html,*.ep,*.tt normal! mH |
|
299 autocmd BufLeave *.js normal! mJ |
|
300 autocmd BufLeave *.pl,*.pm normal! mP |
299 augroup END |
301 augroup END |
300 "}}} |
302 "}}} |
301 |
303 |
302 |
304 |
303 " Perl type-specific settings {{{ |
305 " Perl type-specific settings {{{ |