Comment

Comment by hou32hou

To be frank it takes time to get used to, especially if you are already a Vim amateur.

However, once you get the hang of it you will find that most common operations can be achieved within 3 keypresses.

For example, to delete the current line, press `e` (Line selection mode) and then `d` (Delete).

To delete the current word, press `w` (Word selection mode) and then `d`.

To insert new text at the end of the current line, press `e`, then `a` (enter insert mode at the end of the selection).

To insert new text at the beginning of the current line, press `e`, then `i` (enter insert mode at the beginning of selection).

To go to the first line, press `e`, then `,` (Move to the first selection).

To go to the last line, press `e`, then `.` (Move to the last selection).

There are too many of such examples that I cannot fit in one comment, but I think you get the idea. It's all about creative combinations between selection modes and movements.

parent hou32hou 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton