Skip to content

Enhance vim emulation commands#633

Closed
mcclurgm wants to merge 18 commits intoelementary:masterfrom
mcclurgm:add-vim-codes
Closed

Enhance vim emulation commands#633
mcclurgm wants to merge 18 commits intoelementary:masterfrom
mcclurgm:add-vim-codes

Conversation

@mcclurgm
Copy link
Contributor

@mcclurgm mcclurgm commented Feb 1, 2019

Started as a fix for my issue #614.
It implements 2 new commands, lower-case "a" to insert after cursor and caret "^" to move to beginning of the indented line.
It also updates the behavior of other commands to use paragraph ends instead of display line ends, like vim does, to be more predictable.

It's a work in progress at the moment, I expect to add more stuff going forward. All my changes should be independent so you can only merge the ones you want.

@jeremypw
Copy link
Collaborator

Probably best reviewed by a Vim (plugin) user. Code style looks OK.

@jeremypw
Copy link
Collaborator

@mcclurgm Need to fix lint error (trailing whitespace).

@mcclurgm
Copy link
Contributor Author

mcclurgm commented Dec 7, 2019

Sorry I haven't been keeping up on this. I'm working on starting to break it up into a collection of smaller, focused PRs as you requested. I've also realized issues with some of the changes in this PR (for example, moving up or down resets to the end of the line), so I think it's probably safe to discard it and I'll reimplement the changes with fixed behavior.

@jeremypw
Copy link
Collaborator

jeremypw commented Dec 8, 2019

@mcclurgm OK, thanks. I'll close for now.

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.

3 participants