Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Vim Rebindings (was: Tex Editor Recommendations?)



On 2024-09-16 12:14 +0900 (Mon), Chris Salisbury wrote:

> Apparently everyone but me likes to remap normal mode 's' to "save" or
> something less useful than the default behavior.

I do this (for both `s` and `S`), and just revisited my decision to do so.

For those not in the know, these commands are:
- `s`/`cl`: replace the character under the cursor with whatever you type
  in the insert mode started by the command.
- `S`/`cc`: replace the line under the cursor with whatever you type
  in the insert mode started by the command.

I stand by my conclusion that `s` and `S` are definitely keys worth
remapping. `S`/`cc` has _some_ utility, but not as much as "save all
files," given that `cc` is exactly the same number of keystrokes (remember
`S` needs a shift keystroke). And `s`/`cl` is...well, who uses that? I use
a lot of "change my selection" commands, but I do them all with `c`
followed by a move, and remembering `s` as a special case for `cl` is more
work, given how rarely I use `cl`.

> Maybe easier to flame about kakoune/helix claiming they're more efficient
> than vim.

I can't speak for Helix, but Kakoune may be more efficient than Vim once
you get it installed everywhere and get everyone familiar with it.
Unfortunately, in my pair-programming over the past few years with a
Kakoune-using friend, we've spent more time recovering from me typing the
wrong thing into Kakoune than we've saved on whatever it's supposed to
provide in terms of extra efficiency.

cjs
-- 
Curt J. Sampson      <cjs@example.com>      +81 90 7737 2974

To iterate is human, to recurse divine.
    - L Peter Deutsch


Home | Main Index | Thread Index