top 60 comments

sorted by: hot top controversial new old
[+] 126 points 5 months ago* (6 children)
  • [–] 11 points 5 months ago (4 children)

    When $EDITOR is vim, but I expected anything else:

    opens file, with small text on the top; text begins changing; text duplicates in size, then triples; text returns to original size; text increases in size to fit several screens...

    Then my great reflexes kick on and I notice something wrong :)

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 5 months ago (3 children)

    Do you prefer when EDITOR is set to emacs?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 49 points 5 months ago (4 children)

    I will legitimately go esc, :w, i on Google Docs to try and save the document...

  • source
  • hideshow 4 child comments
  • [–] 31 points 5 months ago* (2 children)

    Escape in some email clients cancels a new email. I had to retype many emails before email clients began auto-saving drafts.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 21 points 5 months ago (31 children)

    Explain pls for us vimless noobs

  • source
  • hideshow 31 child comments
  • [–] 27 points 5 months ago (28 children)

    Direction navigation in vim is hjkl.

  • source
  • parent
  • hideshow 28 child comments
  • [–] 23 points 5 months ago (27 children)

    I know I'm just a vim-less heathen, but using letters for navigation in a text editor seems kind stupid when arrows exist.

  • source
  • parent
  • hideshow 27 child comments
  • [–] 47 points 5 months ago (6 children)

    No, you're 100% right. The only reason it's this way is this: https://pikuma.com/blog/origins-of-vim-text-editor

    These literally were the arrow keys on the machine that vim was originally developed on.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 12 points 5 months ago (5 children)

    Why the hell didn't they go with JIKL or something instead then, so the pattern at least resembles the direction it navigates?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 25 points 5 months ago (2 children)

    Wasd was revolutionary at the time

  • source
  • parent
  • hideshow 2 child comments
  • [–] 10 points 5 months ago*

    The reason it's so popular is because it provides directional navigation on the home row, with the direction that's by far the most common (down) under your strongest, dominant finger (the index finger).

    It's much better for both efficiency and ergonomics than arrow keys.

  • source
  • parent
  • [–] 8 points 5 months ago (17 children)

    Why would you move your hand to arrow keys when the letter are already under your fingers?

    ESC, use-letter-to-navigate, i, type, ESC, navigate, i, type

    Really simple. On my keyboard I re-mapped ESC to TAB so I don't even have to move my hand to switch between navigate and insert modes.

  • source
  • parent
  • hideshow 17 child comments
  • [–] 2 points 5 months ago (7 children)

    I have it instead of CapsLock, tab is too useful to forego.

    But yes, arrow keys are too far, and I avoid them everytime I can, including in Shell

  • source
  • parent
  • hideshow 7 child comments
  • [–] 2 points 5 months ago (6 children)

    Yeah, sorry. I have:

    Esc -> Caps lock (useless so far away)

    Caps Lock -> Tab (the most useful so closest)

    Tab -> Esc -> second most useful

    I had it for so long that I forgot which one is which :)

  • source
  • parent
  • hideshow 6 child comments
  • [–] 1 point 5 months ago (5 children)

    Imma throw another option into the ring which is Caps lock -> Esc / Ctrl. it‘s esc when tapped and ctrl when combined/ held for longer. veeeery useful

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 5 months ago (4 children)

    Sounds interesting. How do you set this up in Linux? I'm just remapping keys on X level now.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 5 months ago (3 children)

    I‘m sure there’s a good way to do this on the OS side, but I‘m doing it in ZMK/ QMK.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 4 months ago (2 children)

    This is just for wireless? I still prefer to use USB. I will try to find something similar, thanks.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 4 months ago (1 child)

    ZMK does wireless and wired, with a focus on wireless, whilst QMK has its focus on wired and i’m not sure whether it does wireless.

    I got two Aurora Sofle (shoutout to splitkb for having good products and customer service) one wired with qmk (and MX switches) and one wireless with zmk (and kailh switches). Both work very well, but i’ve found that I prefer kailh switches over MX.

    QMK is also used by folks like Keychron for their wired keyboards, and for gui focussed ppl it’s configurable via the browser app „via“.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 5 months ago (8 children)

    So you've transferred the required hand move from the right hand to the left, and added extra required keystrokes to accomplish the same task. I don't see how that isn't worse.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 5 points 5 months ago (5 children)

    No, it's a key stroke, not hand move. I don't have to reposition my hand to hit ESC. You do have to reposition your hand to use arrow keys.

    Also, you usually move the cursor by more than just one character. It's one extra keystroke to reposition the cursor, not to move it by one char. You have shortcuts to jump to end of file, specific line, end of line or even create and jump to bookmarks. All this with just standard keys, without repositioning your hands to use the mouse or arrow keys.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 5 months ago (4 children)

    Your keyboard must be slightly different than the one I have in front of me right now. Home row to esc and home row to arrows is the same distance on mine.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 5 months ago (3 children)

    First, as I said, I remapped ESC to TAB key. Tab is very close.

    Second, it's different to hit ESC ones than to use arrows keys to move around. To go back to home row after using arrow keys I have to feel around the keys trying to find "j" again. Or look at keyboard. I don't have to do that after hitting ESC once.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 5 months ago (2 children)

    I'm not bothering to talk about non default layouts. Remapping is a separate discussion, since I could just as easily say it's better to remap wasd to the arrow function and have the FN key toggle it, since a much higher number of people already have that navigation method trained into muscle memory. This is a preference game no matter what, but it becomes an especially pointless discussion if you base it on custom layouts.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 5 months ago* (last edited 4 months ago) (1 child)

    Custom layout was only part of my answer. Most vim users don't use custom layouts and second point still holds.

    I could just as easily say it’s better to remap wasd to the arrow function and have the FN key toggle it,

    Great idea. It would give you like 5% of what vim offers but 5% is better than 0%.

    much higher number of people already have that navigation method trained into muscle memory

    All vim users have hjkl trained into muscle memory. No one is saying that it's automatically better. vim has a learning curve. When you know how to use it it's simply better than traditional editors.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 7 points 4 months ago

    20Gwwbcwkurva:wq

  • source
  • [–] 7 points 4 months ago

    I cannot begin to describe how many times I’ve had to re-type the same info in some input form because I hit esc when I had first finished it!

  • source
  • [–] 5 points 5 months ago

    It's been so long since I worked on a machine where I couldn't use the cursor keys in vi, I don't think I'd even be able to anymore.

  • source
  • [–] 5 points 5 months ago

    I only understand this reference because I worked for a company at one point that had a large number of NeXT and Solaris hosts that only had vi installed with letter key navigation, so my muscle memory does not use arrow keys.

  • source
  • [–] 4 points 4 months ago

    Here's what my terminal usually looks like

    @>vim srv/txt.txt Writes a bunch of lines of code/words/docker containers. [ESC] :sq Can't edit file without sudo :q! @>sudo vim srv/txt.txt 🥹

  • source
  • [–] 4 points 5 months ago (1 child)

    Coders use word docs?

    I'm not a programmer but I still open up notepad and write in markdown.

    It's just faster.

  • source
  • hideshow 1 child comment
  • [–] 3 points 4 months ago

    ITT: People who don't use vim and insist we have arrow keys now so don't need hjkl anymore.

  • source
  • [–] 3 points 4 months ago (2 children)

    Erm. This would be vi? vim has arrow key support.

  • source
  • hideshow 2 child comments
  • [–] 2 points 4 months ago

    And they lived happier ever after.

    THE END :wq!

  • source
  • [–] 2 points 5 months ago

    When I start a new roguelike:

    Activate [j]ump ability, view [l]og, no item underfoot to mark for [k]eeping, [h]ide.

  • source
  • [–] 2 points 4 months ago (1 child)

    jjjjjjjjjjj? Nah fam, 11j.

  • source
  • hideshow 1 child comment
  • [–] 2 points 4 months ago

    ting in vim I sometimes still forget I start in normal mode.

  • source
  • [–] 2 points 4 months ago*

    <ESC><ESC><ESC><ESC>ujj<ESC>u<ESC>v0wsffs<C-z><C-s><A-F4><A-enter>vim pres.typ...

  • source