Resolves #62 - Change the way visual mode is restored after a command #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch fixes #62. (And also mapping bug: #64)
Prior to this change, the setting
g:mkdx#settings.restore_visual
could not be changed at runtime, one had to restart Vim due to the way that visual mode was restored (applyinggv
after plug mapping).To fix this extra
<Plug>
mappings were added and some existing ones were changed. Backwards compatibility is kept by keeping a copy of the original<Plug>
mappings around, so they will still work if you created a custom mapping with them, just note that in visual mode, the selection will no longer be restored.This is the list of plugs that are deprecated:
And here a list of what replaced what:
<Plug>(mkdx-checkbox-next)
replaced by<Plug>(mkdx-checkbox-next-n)
<Plug>(mkdx-checkbox-next-v)
<Plug>(mkdx-checkbox-prev)
replaced by<Plug>(mkdx-checkbox-prev-n)
<Plug>(mkdx-checkbox-prev-v)
<Plug>(mkdx-toggle-quote)
replaced by<Plug>(mkdx-toggle-quote-n)
<Plug>(mkdx-toggle-quote-v)
<Plug>(mkdx-toggle-checkbox)
replaced by<Plug>(mkdx-toggle-checkbox-n)
<Plug>(mkdx-toggle-checkbox-v)
<Plug>(mkdx-toggle-checklist)
replaced by<Plug>(mkdx-toggle-checklist-n)
<Plug>(mkdx-toggle-checklist-v)
<Plug>(mkdx-toggle-list)
replaced by<Plug>(mkdx-toggle-list-n)
<Plug>(mkdx-toggle-list-v)
All the docs have been updated to reflect the new
-{n|v}
style for these plugs.