Browse files

explicity mark variables as global

  • Loading branch information...
1 parent ffc3756 commit f459ad45333e917f0e98da40caaf7d79a07f2b3b @gray committed Sep 15, 2012
Showing with 11 additions and 13 deletions.
  1. +11 −13 .vim/after/ftplugin/perl.vim
View
24 .vim/after/ftplugin/perl.vim
@@ -1,8 +1,6 @@
-let g:perl_compiler_force_warnings = 0
compiler perl
-
-" Show line numbers
setlocal number
+setlocal equalprg=perltidy\ -q
let &l:path = './lib,./blib/lib,./blib/arch,' . &l:path
let $PERL5LIB = substitute(&l:path, ',', ':', 'g')
@@ -13,18 +11,18 @@ if has('mac')
let b:keywordprg = "PERLDOC='-n\"nroff -Tascii\"' " . &keywordprg
endif
-setlocal equalprg=perltidy\ -q
+let g:perl_compiler_force_warnings = 0
-let perl_include_pod = 1
-let perl_extended_vars = 1
-let perl_want_scope_in_variables = 1
-let perl_string_as_statement = 1
+let g:perl_include_pod = 1
+let g:perl_extended_vars = 1
+let g:perl_want_scope_in_variables = 1
+let g:perl_string_as_statement = 1
" Fold POD and heredocs
-let perl_fold = 1
-let perl_nofold_packages = 1
-let perl_nofold_subs = 1
+let g:perl_fold = 1
+let g:perl_nofold_packages = 1
+let g:perl_nofold_subs = 1
" Deparse obfuscated code
-nnoremap <silent> <localleader>pD :%!perl -MO=Deparse 2>/dev/null<cr>
-vnoremap <silent> <localleader>pD :!perl -MO=Deparse 2>/dev/null<cr>
+nnoremap <silent> <buffer> <localleader>pd :%!perl -MO=Deparse 2>/dev/null<cr>
+vnoremap <silent> <buffer> <localleader>pd :!perl -MO=Deparse 2>/dev/null<cr>

0 comments on commit f459ad4

Please sign in to comment.