aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 17:47:02 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 17:47:02 +1300
commit6d0490fabab4c086610e37a88c8245f927205e6d (patch)
tree7c3a03f89625a55965baecbf6e00787242ffd91f /vim
parentUpdate submodules (diff)
downloaddotfiles-6d0490fabab4c086610e37a88c8245f927205e6d.tar.gz
dotfiles-6d0490fabab4c086610e37a88c8245f927205e6d.zip
Move non-indent HTML Vim config indent->ftplugin
This was mistakenly moved along with some indentation settings in 9858af6.
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/html.vim11
-rw-r--r--vim/indent/html.vim12
2 files changed, 11 insertions, 12 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
new file mode 100644
index 00000000..38b71656
--- /dev/null
+++ b/vim/ftplugin/html.vim
@@ -0,0 +1,11 @@
+" 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>
diff --git a/vim/indent/html.vim b/vim/indent/html.vim
index 7b16fb3a..fd1b26af 100644
--- a/vim/indent/html.vim
+++ b/vim/indent/html.vim
@@ -1,14 +1,2 @@
" Restore local indent settings to the global values
runtime indent/_GLOBAL.vim
-
-" 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>