16

There is a very handy shortcut for us, the people who use the terminal every day. It's [CTRL]+w. It erases a word on the left.

HOWEVER, it is quite annoying to be used to that shortcut when you are in a browser. Especially when you've been writing a well-thought-out letter for half an hour or so.

DAMN IT!

Comments
  • 1
    ctrl shift t
  • 1
    This is a good reason to stick with delete and backspace for deleting stuff; in most places holding `Ctrl` will toggle from character to word...
  • 1
    Step 1: $ set -o vi
    Step 2: Build muscle memory
    Step 3: ...
    Step 4: Profit!
  • 2
    The amount of times I've tried to save a file in vs code with <esc>:wq
  • 1
    @dder profit indeed! And you don't even notice how your email signature becomes
    - netikras:wq
  • 1
    For me :
    ctrl+shift+<left arrow> then delete
  • 0
    @CaffeineAddict have you not installed the vim plugin in vs code ?
  • 0
    @netikras no problem there if you are using mutt.

    I wonder why ppl still use :wq instead of at least :x or ZZ 🤓
  • 0
    @Jilano it does for me with firefox
  • 0
    @dder habbits :) I like to say the actions in my mind when I'm typing their commands. "Write and Quit" :wq
  • 1
    @Jilano that's one of the reasons why I love GNU tools (and CLI in general). They are very intuitive. You [almost] type what you think and you get what you want.

    They are, IMO, more user-friendly than GUIs, because in GUIs you have to learn to classify things the same way the developer did. And you have to read it all, interpret, decide, whether that's what you want, click, rinse and repeat.

    In terminal I usually type what I think- and it happens :) Ofc I snip off a letter or two from each word for brevity (and it so happens to be the correct abbreviation for the command's parameter!) and prefix each word/abbr with a dash or two (because the manual asked me to). Et voila!

    The same goes for vim.
Add Comment