-
Notifications
You must be signed in to change notification settings - Fork 14
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
Moving through variable segments #8
Comments
Hrm, I forgot to even check if vim-textobj-user gave us this for free :). Yeah, this'd be nice to have – I'd have to read through a bit myself to figure out how to get this done. |
Yeah, if you want to skype chat, I can kind of go over what I've already found out, I'm just way too new to vim and vimscript, so it's going to take me way much longer to figure out. |
Is there a way to use variable-segment in a similar way as targets.vim does with
Thanks! PS: I'm not sure if this issue is the totally about my question, but it's too related to create a new one? |
How about |
While there is no support for movements with this plugin, one can combine it with Add this unimpaired-style mappings to your " call camelcasemotion#CreateMotionMappings('<leader>') <----- MAKE SURE TO NOT CALL THIS FUNCTION
nmap <silent> ]v <Plug>CamelCaseMotion_w
vmap <silent> ]v <Plug>CamelCaseMotion_w
nmap <silent> [v <Plug>CamelCaseMotion_b
vmap <silent> [v <Plug>CamelCaseMotion_b Other than that, the textobj defined by this plugin are far superior to the ones that could be used in |
@hbarcelos Perfect, thank you! |
It would be nice to move forwards and back by variable segments . I just got into vim and vimscript, I looked at the code for a while and read the documentation but couldn't really figure it out. I saw that it would require setting move-n-function and move-p-function but I wasn't sure how to set up a keybinding and how to set up the dictionaries like that.
The text was updated successfully, but these errors were encountered: