diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 11:07:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 11:07:56 +1200 |
commit | b6cfedbbf4e02e71fbd0e44a70a33227ce03c0ed (patch) | |
tree | 45fca8d773e13b2129529ba188f7c39034fd8fbd /vim/after/ftplugin/html.vim | |
parent | Merge branch 'release/v1.14.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-1.15.0.tar.gz (sig) dotfiles-1.15.0.zip |
Merge branch 'release/v1.15.0'v1.15.0
* release/v1.15.0: (37 commits)
Bump VERSION
Reimplement fallback for fixed_join.vim
Add insert_cancel.vim plugin and configuration
Clear away stock vim ftplugin's buffer maps
Correct \V mapping
Include install-vim-plugin in install-vim target
Break up \o and \O mapping comment
Move plugin-specific settings into ~/.vim/plugin
Remove custom digraphs
Remove unnecessary value report from \u \z maps
Add \m, \M, \v, and \V mappings
Allow range for \d and \D bindings
Swap \c and \C bindings
Rearrange mappings a little more
Remove unused mappings
Simplify Ctrl-L Vim map
Reorder mappings
Remove conditional around \d,\D maps
Remove range strip from :& rebind
Prefer "remap" to "rebind"
...
Diffstat (limited to 'vim/after/ftplugin/html.vim')
-rw-r--r-- | vim/after/ftplugin/html.vim | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index a8e9efcc..8a1c22d4 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -1,5 +1,8 @@ " Extra configuration for 'html' filetypes -if &compatible || v:version < 700 || exists('b:did_ftplugin_after') +if exists('b:did_ftplugin_after') || &compatible + finish +endif +if v:version < 700 finish endif if &filetype !=# 'html' @@ -9,6 +12,18 @@ let b:did_ftplugin_after = 1 let b:undo_ftplugin = b:undo_ftplugin \ . '|unlet b:did_ftplugin_after' +" Set up hooks for timestamp updating +augroup html_timestamp + autocmd! + autocmd BufWritePre *.html + \ if exists('b:html_timestamp_check') + \| call html#TimestampUpdate() + \|endif +augroup END +let b:undo_ftplugin = b:undo_ftplugin + \ . '|augroup html_timestamp|autocmd!|augroup END' + \ . '|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 |