-
-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dictionary for user can add custom mapping rule. #32
base: master
Are you sure you want to change the base?
Conversation
…sed custom mapping.
conflict in future. so user `_` as key for global mapping
This is already possible with global and buffer-local variables. |
graywh , I know that, I use it's global and buffer-local variables. The purpose of my change is that user don't need to use |
Back when I first wrote surround.vim, Vim 7 was new and Vim 6 was still commonly provided with OS distributions. I strove to make surround.vim strictly backwards compatible (even though this meant only a subset of the functionality worked) so that I could still make use of it on servers an whatnot. Those days are long behind us, so for a while now I've had ambitious plans which included a hash like syntax for customization. A couple of differences in my vision:
Now that I'm finally getting on top of my open source stuff, hopefully you'll see progress on this in the next month or two. I'll leave the pull request open until then. |
I'm happy to hear your ambitious plan to support hash like customization. |
This implements surround mapping definition as maps. Related-to: tpope#32
This implements surround mapping definition as maps. Related-to: tpope#32
introduce g:surround_custom_mapping dictionary which help filetype based custom mapping.
I hope this mini utility for surround.vim is bundled in orignal surround.vim.
User can easily add custom mapping rule for each
&filetype
or global scope based.configuration example