.vimrc

changeset 362
7c5b0e94b399
parent 345
e0bfe67950f8
child 368
91d4fb4e0a42
equal deleted inserted replaced
361:7ab7173fb61f 362:7c5b0e94b399
304 304
305 " you have to go out of your way to make this stick 305 " you have to go out of your way to make this stick
306 autocmd BufNewFile,BufRead * setlocal formatoptions-=ro 306 autocmd BufNewFile,BufRead * setlocal formatoptions-=ro
307 307
308 autocmd FileType text setlocal textwidth=78 308 autocmd FileType text setlocal textwidth=78
309 autocmd FileType perl call PerlSettings()
310 309
311 " preload templates into new buffers by file extension 310 " preload templates into new buffers by file extension
312 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template 311 "autocmd BufNewFile * silent! 0r $MYVIM/templates/%:e.template
313 312
314 " Set file marks by "category" on switch-away 313 " Set file marks by "category" on switch-away
320 "}}} 319 "}}}
321 320
322 321
323 " Perl type-specific settings {{{ 322 " Perl type-specific settings {{{
324 323
325 function! PerlSettings () 324 " let perl_fold = 1 " perl fold scanning is slow
326 compiler perl
327 " even with g:perl_compiler_force_warnings = 0, perl -w is used and
328 " that's just noisy with intentional no-warnings blocks out there
329
330 setlocal makeprg=perl\ -c\ %\ $*
331 setlocal iskeyword+=:
332
333 " this keeps indents from jumping more than one level
334 let b:indent_use_syntax = 0
335 endfunction
336
337 " perl fold scanning is slow
338 "let perl_fold = 1
339 let perl_include_pod = 1 325 let perl_include_pod = 1
340 let perl_sub_signatures = 1 326 let perl_sub_signatures = 1
327 let perl_sync_dist = 200
341 328
342 " }}} 329 " }}}
343 330
344 331
345 " Plugin settings {{{ 332 " Plugin settings {{{

mercurial