Hacker News new | past | comments | ask | show | jobs | submit login

Vim's greatest weakness is that the default keyboards are so intricately tied to its design.

I would really like a modal editor with a more customizable "normal mode" layout.




EDIT: I typed "default keyboards" where I meant "default keybindings".

It's too late for me to edit the comment.


Do you have an example for that?


Vim's normal mode keybindings all correspond to a function/command of the same name.

For example, i enters insert mode, dd deletes a line, f moves forward a char, etc.

You can record a macro by pressing q followed by another key, followed by any string of keystrokes, and ended by pressing q again.

So qbxxxq would save a macro to the b register that deletes three characters. You play it back with @b.

The neat thing is that macros are recorded in plain text, so pressing "bp would print the contents of the b register (xxx).

You can even write out the keystrokes of a new macro, then yank (copy) that text into a register with y"b (for the b register), and pay it back like normal (by pressing @b).

Anyway, the trouble with this ingenious system is that x isn't just the delete key, it's the delete function. You can map another key to do the x function; but at the end of the day, there's no getting away from the original function names, and therefore no way to get away from the original keybindings.

I've tried remapping keys in vim, and I always end up with an unusable mess, because I have to remap every key or lose access to functionality, and remapping some functions isn't as easy as you might expect.

I would rather, as a user, start from the ground up and define my own normal mode bindings, with regular function names like delete-char() or whatever.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: