aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
blob: 07cf9a1f79aa1b5d70d845b167e45b44777cae7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Run `perl -c` over buffer
nnoremap <buffer> <silent>
      \ <LocalLeader>c
      \ :<C-U>write !perl -c<CR>

" Run `perlcritic` over buffer
nnoremap <buffer> <silent>
      \ <LocalLeader>l
      \ :<C-U>write !perlcritic<CR>

" Filter buffer through `perltidy`
nnoremap <buffer> <silent>
      \ <LocalLeader>t
      \ :<C-U>%!perltidy<CR>