aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:04:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-04 15:07:43 +1300
commit04f2d9f319e363b1b6291fa3fefc1650aad2b228 (patch)
treed15319aa2a13e96be7f90e37733a2c3f3a0e10d5 /vim/after/ftplugin
parentd2894162a1e6d1315a91d0e48677a6eb47ccaf7d (diff)
downloaddotfiles-04f2d9f319e363b1b6291fa3fefc1650aad2b228.tar.gz
dotfiles-04f2d9f319e363b1b6291fa3fefc1650aad2b228.zip
Remove accidentally created html.vim~ file
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/html.vim~35
1 files changed, 0 insertions, 35 deletions
diff --git a/vim/after/ftplugin/html.vim~ b/vim/after/ftplugin/html.vim~
deleted file mode 100644
index 5f7155bc..00000000
--- a/vim/after/ftplugin/html.vim~
+++ /dev/null
@@ -1,35 +0,0 @@
-" Don't load if the buffer is not actually HTML (e.g. Markdown)
-if &filetype !=# 'html'
- finish
-endif
-
-" Use tidy(1) for checking
-compiler tidy
-let b:undo_ftplugin .= '|unlet b:current_compiler'
- \ . '|setlocal errorformat< makeprg<'
-
-" tidy(1) copes fine with formatting an entire document, but not just part of
-" it; we map \= to do the former, but don't actually set 'equalprg', falling
-" back on the good-enough built-in Vim indentation behavior.
-nnoremap <buffer> <Leader>= :<C-U>call html#TidyBuffer()<CR>
-let b:undo_ftplugin .= '|nunmap <buffer> <Leader>='
-
-" Set up hooks for timestamp updating
-augroup html_timestamp
- autocmd BufWritePre <buffer>
- \ if exists('b:html_timestamp_check')
- \| call html#TimestampUpdate()
- \|endif
-augroup END
-let b:undo_ftplugin .= '|execute ''autocmd! html_timestamp'''
- \ . '|augroup! html_timestamp'
-
-" Stop here if the user doesn't want ftplugin mappings
-if exists('g:no_plugin_maps') || exists('g:no_html_maps')
- finish
-endif
-
-" Transform URLs to HTML anchors
-nnoremap <buffer> <LocalLeader>r
- \ :<C-U>call html#UrlLink()<CR>
-let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>r'