diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:48:42 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:48:42 +1300 |
commit | 0ec73d6242582783ae1a9d457dfe04a5bc852199 (patch) | |
tree | 1eb9a1ed2320e5ecdd2cf49659c59f241f2d28a7 /vim/after/ftplugin/html.vim | |
parent | Set whitespace options for VimL locally (diff) | |
download | dotfiles-0ec73d6242582783ae1a9d457dfe04a5bc852199.tar.gz dotfiles-0ec73d6242582783ae1a9d457dfe04a5bc852199.zip |
Move vim/after/ftplugin files into vim/ftplugin
None of the settings in here need to be run after the core configuration
files are loaded, so I'll put them in a slightly more accessible or
logical place.
This adds a new target `install-vim-ftplugin`, and makes that a
prerequisite of the `install-vim` target.
Diffstat (limited to 'vim/after/ftplugin/html.vim')
-rw-r--r-- | vim/after/ftplugin/html.vim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim deleted file mode 100644 index 38b71656..00000000 --- a/vim/after/ftplugin/html.vim +++ /dev/null @@ -1,11 +0,0 @@ -" Run tidy -eq -utf8 on file for the current buffer -nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR> - -" Make a bare URL into a link to itself -function! UrlLink() - normal yiW - execute "normal i<a href=\"\<C-R>0\">\<Esc>" - normal E - execute "normal a</a>\<Esc>" -endfunction -nnoremap <silent> <leader>r :<C-U>call UrlLink()<CR> |