aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r--vim/ftplugin/perl.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index dad2ce35..08d41008 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -1,3 +1,10 @@
+" Explicitly set indent level; this matches the global default, but it's tidy
+" to enforce it in case we changed from a filetype with different value (e.g.
+" VimL)
+setlocal shiftwidth=4
+setlocal softtabstop=4
+setlocal tabstop=4
+
" Run perl -c on file for the current buffer
nnoremap <leader>pc :exe "!perl -c " . shellescape(expand("%"))<CR>
" Run perlcritic on the file for the current buffer