Skip to content
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

Paramterise AutoPairsFastWrap() to allow for custom movements #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

myitcv
Copy link

@myitcv myitcv commented Jul 14, 2019

By defining a movement parameter for AutoPairsFastWrap, we allow the user
to define addition fast-wrap style mappings, for example:

inoremap <buffer> <silent> <M-E> <C-R>=AutoPairsFastWrap("E")<CR>
inoremap <buffer> <silent> <M-$> <C-R>=AutoPairsFastWrap("$")<CR>

Whilst it might, in the future, seem appropriate/sensible/whatever to
add these as default mapping to auto-pairs, this change allows
experimentation in the short term.

By defining a movement parameter for AutoPairsFastWrap, we allow the user
to define addition fast-wrap style mappings, for example:

inoremap <buffer> <silent> <M-E> <C-R>=AutoPairsFastWrap("E")<CR>
inoremap <buffer> <silent> <M-$> <C-R>=AutoPairsFastWrap("$")<CR>

Whilst it might, in the future, seem appropriate/sensible/whatever to
add these as default mapping to auto-pairs, this change allows
experimentation in the short term.
@myitcv myitcv force-pushed the fastwrap_custom branch from 84b3138 to 648034c Compare July 14, 2019 09:57
@myitcv
Copy link
Author

myitcv commented Jul 31, 2019

Gentle ping

@myitcv
Copy link
Author

myitcv commented Jul 31, 2019

@jiangmiao apologies, I should have first asked whether you are still accepting changes in this project? Thanks

makovich pushed a commit to makovich/dotfiles that referenced this pull request Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant