diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 23:24:06 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-29 23:24:06 +1200 |
commit | ad69b8aca286a9aa5f95f920199370e5512abcf7 (patch) | |
tree | cae556b33a548283a82dfadb2e38bbf2cd1652d7 /vim/filemap.vim | |
parent | Refine 'comments' ftplugins further (diff) | |
download | dotfiles-ad69b8aca286a9aa5f95f920199370e5512abcf7.tar.gz dotfiles-ad69b8aca286a9aa5f95f920199370e5512abcf7.zip |
Use ftplugins for filetype mappings instead
Diffstat (limited to 'vim/filemap.vim')
-rw-r--r-- | vim/filemap.vim | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/vim/filemap.vim b/vim/filemap.vim deleted file mode 100644 index d20a2037..00000000 --- a/vim/filemap.vim +++ /dev/null @@ -1,55 +0,0 @@ -" Filetype-specific mappings -if &compatible || v:version < 700 || !has('autocmd') - finish -endif - -" No 'loaded' guard; this file is an extension of our .vimrc, and we do want -" to reload it if the .vimrc is re-sourced. - -" Set up filetype mapping hooks -augroup filetypemap - autocmd! - - " Clear existing local leader maps if possible - autocmd FileType * - \ silent! call clear_local_maps#Clear() - - " Diff: prune sections - autocmd FileType diff - \ nmap <buffer> <LocalLeader>p <Plug>DiffPrune - \|xmap <buffer> <LocalLeader>p <Plug>DiffPrune - - " HTML: lint, URL-to-link, tidy - autocmd FileType html - \ nmap <buffer> <LocalLeader>l <Plug>HtmlLint - \|nmap <buffer> <LocalLeader>r <Plug>HtmlUrlLink - \|nmap <buffer> <LocalLeader>t <Plug>HtmlTidy - - " Makefile: make target - autocmd FileType make - \ nmap <buffer> <LocalLeader>m <Plug>MakeTarget - - " Perl: check, lint, and tidy - autocmd FileType perl - \ nmap <buffer> <LocalLeader>c <Plug>PerlCheck - \|nmap <buffer> <LocalLeader>l <Plug>PerlLint - \|nmap <buffer> <LocalLeader>t <Plug>PerlTidy - - " PHP: check - autocmd FileType php - \ nmap <buffer> <LocalLeader>c <Plug>PhpCheck - - " Shell: check and lint - autocmd FileType sh - \ nmap <buffer> <LocalLeader>c <Plug>ShCheck - \|nmap <buffer> <LocalLeader>l <Plug>ShLint - - " VimL: lint - autocmd FileType vim - \ nmap <buffer> <LocalLeader>l <Plug>VimLint - - " Zsh: check - autocmd FileType zsh - \ nmap <buffer> <LocalLeader>c <Plug>ZshCheck - -augroup END |