diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:35:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:35:23 +1300 |
commit | 3f586a3d48bb04ef9206a202235b54cfcec38859 (patch) | |
tree | a397b67d51b09fb8de35eabe004e2bc22693c207 /vim/ftplugin/perl.vim | |
parent | Merge branch 'hotfix/v0.4.2' into develop (diff) | |
download | dotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.tar.gz dotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.zip |
Use <Leader>/<LocalLeader> correctly in Vim config
From ":help <LocalLeader>":
> In a global plugin <Leader> should be used and in a filetype plugin
> <LocalLeader>. "mapleader" and "maplocalleader" can be equal.
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r-- | vim/ftplugin/perl.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index dad2ce35..53341183 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -1,6 +1,6 @@ " Run perl -c on file for the current buffer -nnoremap <leader>pc :exe "!perl -c " . shellescape(expand("%"))<CR> +nnoremap <LocalLeader>pc :exe "!perl -c " . shellescape(expand("%"))<CR> " Run perlcritic on the file for the current buffer -nnoremap <leader>pl :exe "!perlcritic " . shellescape(expand("%"))<CR> +nnoremap <LocalLeader>pl :exe "!perlcritic " . shellescape(expand("%"))<CR> " Run the current buffer through perltidy -nnoremap <leader>pt :%!perltidy<CR> +nnoremap <LocalLeader>pt :%!perltidy<CR> |