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 Ncc support and revise cc behavior #365

Merged
merged 2 commits into from
Jun 27, 2016
Merged

Conversation

rebornix
Copy link
Member

Original cc behaviour is not the same as Vim. When you trigger cc in Vim with below content,

one
|two
three

You will get

one
|
three

However, what we get in VSCodeVim is

one
|three

I suppose it's not a correct way of cc and it's caused by treating cc as LineWise. Now I add numeric support and set it as CharacterWise to fix this problem.

@@ -4,7 +4,7 @@ import { VimState } from './../mode/modeHandler';
* There are two different modes of copy/paste in Vim - copy by character
* and copy by line. Copy by line typically happens in Visual Line mode, but
* also shows up in some other actions that work over lines (most noteably dd,
* yy, and cc).
Copy link
Member

Choose a reason for hiding this comment

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

Haha, nice catch!

@johnfn johnfn merged commit 0cf7d18 into VSCodeVim:master Jun 27, 2016
@johnfn
Copy link
Member

johnfn commented Jun 27, 2016

Good stuff. This has been bugging me for a while.

@rebornix rebornix deleted the CC branch June 27, 2016 23:21
This pull request was closed.
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.

2 participants