diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:48:57 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:48:57 +1300 |
commit | d4cbf3994178061dad4a4e2d345f8cf0466bec39 (patch) | |
tree | 67bfede247336b6601529627730e6049621653dc /vim/ftplugin/html.vim | |
parent | Merge branch 'release/v0.13.0' (diff) | |
parent | Regenerate dotfiles(7) manual from README.md (diff) | |
download | dotfiles-0.14.0.tar.gz (sig) dotfiles-0.14.0.zip |
Merge branch 'release/v0.14.0'v0.14.0
* release/v0.14.0:
Regenerate dotfiles(7) manual from README.md
Bump version number to 0.14.0
Mention Vim restructuring in README
Add guards for presence of b:undo_* var
Exclude SC1090 (failed source) shellcheck error
Move lots of local Vim config into vim/after
Add author/license boilerplate to all plugins
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' |