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

Typing cc clears line but won't position cursor and sometimes won't indent correctly #1828

Closed
lumio opened this issue Jun 12, 2017 · 1 comment

Comments

@lumio
Copy link

lumio commented Jun 12, 2017

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Environment: Mac OS, Node JS

  • EditorConfig: 0.9.3
  • ESLint: 1.2.11
  • Vim: 0.8.5
  • VSCode Version: 1.13.0
  • VsCodeVim Version: 0.8.5
  • OS: Mac OS 10.12.5

What happened:

  • Typing cc when cursor is at col 0 and in block on empty line: Jumping to input mode, but won't indent correctly
  • Typing cc when cursor is at col 2 (or any col): Removes line and ends up at col 0 with no indentation
  • Typing cc when cursor is at col 0 but there is valid code on line that is inside a block: Removes line as it should do, but cursor ends at col 0 with trailing whitespace
  • Typing cc when cursor is at col >2 (in block, line with valid code, cursor on code): Removes line of code and indents correctly ✅

Here all of those scenarios in a GIF (with tab width of 3 instead of 2)
cc

What did you expect to happen: Typing cc will always clear the line, indents it and cursor jumps to end of line.

How to reproduce it: See above, but typically typing cc on different col positions.

@Chillee
Copy link
Member

Chillee commented Jun 14, 2017

This is a duplicate of #1017 but has much better detail.

I'm going to close this issue in favor of that one, but copy your feedback over into the other thread.

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

No branches or pull requests

2 participants