diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:38:36 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:38:36 +1300 |
commit | e7068824399af0ffa412f520563aef6962c8877a (patch) | |
tree | a397b67d51b09fb8de35eabe004e2bc22693c207 /vim/ftplugin | |
parent | Merge branch 'hotfix/v0.4.2' into develop (diff) | |
parent | Use <Leader>/<LocalLeader> correctly in Vim config (diff) | |
download | dotfiles-e7068824399af0ffa412f520563aef6962c8877a.tar.gz dotfiles-e7068824399af0ffa412f520563aef6962c8877a.zip |
Merge branch 'feature/local-leader' into develop
* feature/local-leader:
Use <Leader>/<LocalLeader> correctly in Vim config
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/html.vim | 4 | ||||
-rw-r--r-- | vim/ftplugin/perl.vim | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index 3f28e9ea..309b7132 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -1,5 +1,5 @@ " Run tidy -eq -utf8 on file for the current buffer -nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR> +nnoremap <LocalLeader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR> " Make a bare URL into a link to itself function! s:UrlLink() @@ -8,4 +8,4 @@ function! s:UrlLink() normal! E execute "normal! a</a>\<Esc>" endfunction -nnoremap <silent> <leader>r :<C-U>call <SID>UrlLink()<CR> +nnoremap <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR> 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> |