Change buffer options depending on the context.
For a small example of the potential, with Vim properly configured for HTML, and a commenter plugin like commentary.vim, this plugin will allow you to do this:
This plugin requires context_filetype.vim.
Install using your favorite package manager, or use Vim's built-in package support:
mkdir -p ~/.vim/pack/default/start
git clone $REPO_URL ~/.vim/pack/default/start/fencing
vim -c "helptags fencing/doc" -c q
See :help fencing
.
Copyright (c) Jeremy Cantrell. Distributed under the same terms as Vim itself.
See :help license
.