aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
blob: 08d4100848b8fd0dbf1e2f73011d4a872745eaca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
" 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
nnoremap <leader>pl :exe "!perlcritic " . shellescape(expand("%"))<CR>
" Run the current buffer through perltidy
nnoremap <leader>pt :%!perltidy<CR>