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

Can't leave insert mode after typing S from normal mode #26

Closed
gotgenes opened this issue Feb 26, 2021 · 3 comments
Closed

Can't leave insert mode after typing S from normal mode #26

gotgenes opened this issue Feb 26, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gotgenes
Copy link
Contributor

When in normal mode, then typing S, this plugin clears the line and puts the user in insert mode, consistent with behavior described in Vim.

["x]S                   Delete [count] lines [into register x] and start                                                                        
                        insert.  Synonym for "cc" linewise.      

However, at this point, it does not seem to be possible to exit insert mode. The user is forced to hit Enter to get a new prompt. This prompt will actually start in normal mode, which is also unexpected.

I do not observe this behavior when using cc from normal mode. Like S, cc will clear the line's contents and put me in insert mode, however, I am able to hit Esc and get back to normal mode, as expected.

@jeffreytse jeffreytse self-assigned this Feb 26, 2021
@jeffreytse jeffreytse added the bug Something isn't working label Feb 26, 2021
@jeffreytse
Copy link
Owner

jeffreytse commented Feb 26, 2021

Hi @gotgenes

Thanks for reporting this issue and the detail provided, I will fix this issue as soon as possilble.

Thanks and regards

jeffreytse added a commit that referenced this issue Feb 26, 2021
This commit fixed the issue that we can't leave insert mode after
typing `S` to substitute current line from normal mode.
@jeffreytse
Copy link
Owner

Hi @gotgenes

🎉 Thank you for your patience, this issue has been addressed and fixed, please update your plugin to the latest version. And welcome to star this project for further upadtes in the future.

Thanks and regards

@gotgenes
Copy link
Contributor Author

Confirmed this is fixed in the latest version. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants