Skip to content

Fixed w and e for mac, Fixed 0 not working, Fixed Backspace deleting in normal mode, and added Paste above#19

Open
saujo147-explores wants to merge 2 commits into
tirthd16:mainfrom
saujo147-explores:main
Open

Fixed w and e for mac, Fixed 0 not working, Fixed Backspace deleting in normal mode, and added Paste above#19
saujo147-explores wants to merge 2 commits into
tirthd16:mainfrom
saujo147-explores:main

Conversation

@saujo147-explores
Copy link
Copy Markdown

… in normal mode, and added Paste above

@AlxV07
Copy link
Copy Markdown
Contributor

AlxV07 commented May 22, 2026

How exactly were w and e broken for Mac? Also not seeing changes in this PR that change functionality for those keys. I don't have any issues rn (macOS Tahoe 26.5)

See this discussion on changes removing {shift: true} from addLineTop, addLineBottom: #16 (comment)
Also in standard Vim, o and O both enter insert mode after creating a new line.
If you've a differing opinion, feel free to share!

Did this merged PR not already fix the 0 issue? #15
0 works in Normal and Visual mode for me (tested Arch, macOS Tahoe 26.5)

@saujo147-explores
Copy link
Copy Markdown
Author

Good day, AlxV07!

actually, I had cloned this repo, and used XCode to convert it to a Safari usable version.

  1. Case of w and e:
    It seemed to be broken when I used it at the very end of line. At the very end of the line, pressing w would take my cursor to one space after the first letter.

  2. Case of o and O:
    Yes, in standard Vim, pressing o and O gets you into insert mode.

But the p and P commands don’t go into insert mode . Also, they paste in a new line (maybe the logic can be better when it is copied as dd/yy vs y where it pastes in a new line vs in the same line).

So I wanted to separate the switchToInsertMode() logic from the addLine() logic.

Also, I have just recently started using github in its true sense. I don’t have much expertise in various programming languages. I just observe the code around and try to implement changes if I can.

If there is any mistake, please let me know.

Cheers ✌🏽

@saujo147-explores
Copy link
Copy Markdown
Author

When I had first cloned the repo, some of the changes you made were not there. And I was editing for my own use. I didn’t git fetch/pull later, so I might have missed it. Sorry about that.

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