-
Notifications
You must be signed in to change notification settings - Fork 72
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 more Vim keystrokes #32
Labels
Comments
Would indeed love to have |
cmaughan
added a commit
that referenced
this issue
Feb 28, 2022
Issue #32 Behaves the same way as in Vim. % to go to the next match of the first thing found on the line, or the previous thing found on the line, at any further point into the document. No support for a count. Unit test added to confirm basic behavior. Added a FindFirstCharOf command on the buffer, which returns the first found char in a list of characters, either forward or backwards (inclusive).
cmaughan
added a commit
that referenced
this issue
Mar 3, 2022
Can now change a region demarked by the char after ci. Should work for just about anything; though probably best not to use it for things other than brackets and quotes. Known minor bug; an empty string ci" will not work depending on which side you are in (i.e. you won't be dropped into insert mode). The code tries to maintain indent, with reasonable success for multiple line curly brackets, etc. i.e for the following command in the inner brackets: { { dsdf sdf <ci}> } } Results in: { { | } } Even though Zep doesn't really support auto intent, this is convenient for now. ci(, ci), ci{, ci}, ci[, ci], ci", ci' are of course very useful... No unit tests yet.
@totalgee Let me know if the ci works for you. |
Thanks, see my comment regarding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order of preference/usefulness/ease of implementation:
The text was updated successfully, but these errors were encountered: