diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:45:58 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:45:58 +1300 |
commit | f694cace8570f704118f8deae91b51bb0880b1c0 (patch) | |
tree | c0643cd7c649245c3f355629f5c9a94e464bf68e /vim/ftplugin/html.vim | |
parent | Merge branch 'feature/vim-plug-boilplate' into develop (diff) | |
parent | Add guards for presence of b:undo_* var (diff) | |
download | dotfiles-f694cace8570f704118f8deae91b51bb0880b1c0.tar.gz dotfiles-f694cace8570f704118f8deae91b51bb0880b1c0.zip |
Merge branch 'feature/vim-struct' into develop
* feature/vim-struct:
Add guards for presence of b:undo_* var
Exclude SC1090 (failed source) shellcheck error
Move lots of local Vim config into vim/after
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r-- | vim/ftplugin/html.vim | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim deleted file mode 100644 index d2c6a3e3..00000000 --- a/vim/ftplugin/html.vim +++ /dev/null @@ -1,36 +0,0 @@ -" Run `tidy -errors -quiet` over buffer -nnoremap <buffer> <silent> - \ <LocalLeader>c - \ :<C-U>write !tidy -errors -quiet<CR> - -" Filter buffer through `tidy` -nnoremap <buffer> <silent> - \ <LocalLeader>t - \ :<C-U>%!tidy -quiet<CR> - -" Make a bare URL into a link to itself -function! s:UrlLink() - - " Yank this whole whitespace-separated word - normal! yiW - " Open a link tag - normal! i<a href=""> - " Paste the URL into the quotes - normal! hP - " Move to the end of the link text URL - normal! E - " Close the link tag - normal! a</a> - -endfunction - -" Mapping for the function above -nnoremap <buffer> <silent> - \ <LocalLeader>r - \ :<C-U>call <SID>UrlLink()<CR> - -" Unload this filetype plugin -let b:undo_user_ftplugin - \ = 'silent! nunmap <LocalLeader>c' - \ . '|silent! nunmap <LocalLeader>t' - \ . '|silent! nunmap <LocalLeader>r' |