aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:31:04 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:36:46 +1300
commit703c63113d6e089136259ab077422b51f636309a (patch)
treea15fc24d18ebfa8790024036fc7615792b124298 /vim/ftplugin/perl.vim
parentf1a27833c012d3c0550f2d97839663a5e5ec7171 (diff)
downloaddotfiles-703c63113d6e089136259ab077422b51f636309a.tar.gz
dotfiles-703c63113d6e089136259ab077422b51f636309a.zip
Make all lint/check/tidy maps local and silent
That is, apply <buffer> and <silent> to each of them, to make them only apply to the current buffer and to prevent them from echoing the command they're running.
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r--vim/ftplugin/perl.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 3355227e..38c3308b 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -1,6 +1,6 @@
" Run `perl -c` over buffer
-nnoremap <LocalLeader>pc :write !perl -c<CR>
+nnoremap <buffer> <silent> <LocalLeader>c :write !perl -c<CR>
" Run `perlcritic` over buffer
-nnoremap <LocalLeader>pl :write !perlcritic<CR>
+nnoremap <buffer> <silent> <LocalLeader>l :write !perlcritic<CR>
" Filter buffer through `perltidy`
-nnoremap <LocalLeader>pt :%!perltidy<CR>
+nnoremap <buffer> <silent> <LocalLeader>t :%!perltidy<CR>