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

Add paragraph motions #133

Merged
merged 1 commit into from Jan 30, 2016
Merged

Conversation

johnfn
Copy link
Member

@johnfn johnfn commented Jan 30, 2016

Add { and } motions, plus a couple of tests.

let pos = this.translate(0);

while (TextEditor.getLineAt(pos).text === "" && !TextEditor.isLastLine(pos)) {
pos = pos.translate(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you can re-use getDown() here? Similarly, getUp() in the function below.

jpoon added a commit that referenced this pull request Jan 30, 2016
Add paragraph `{` and `}` motions
@jpoon jpoon merged commit 75c3424 into VSCodeVim:master Jan 30, 2016
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.

None yet

2 participants