aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
blob: c18653d23040da32b1be121e086ac5e0abdbc984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" 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>

" Unload this filetype plugin
let l:undo_user_ftplugin
      \ = 'silent! nunmap <LocalLeader>c'
      \ . '|silent! nunmap <LocalLeader>l'
      \ . '|silent! nunmap <LocalLeader>t'