aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
blob: 5549e33d9ebf7ba6c81bdcf079bbeceab37e0b5e (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 b:undo_user_ftplugin
      \ = 'silent! nunmap <LocalLeader>c'
      \ . '|silent! nunmap <LocalLeader>l'
      \ . '|silent! nunmap <LocalLeader>t'