5 ms·
> I hate how they do it What exactly do you hate? The site says: > > Ctrl+S to save, select text using Shift+←/→/↑/↓, and copy/paste using Ctrl+C/V. I have
by csdvrx 3y ago
> I hate how they do it
What exactly do you hate?
The site says:
> > Ctrl+S to save, select text using Shift+←/→/↑/↓, and copy/paste using Ctrl+C/V.
I haven't setup Control-S, but I have very similar bindings: Shift and arrows for selecting, then Alt or Control-Shift for moving the selection around, as shown on https://raw.githubusercontent.com/csdvrx/CuteVim/main/recordings/shift-arrows_then_ctrl-shift.gif https://raw.githubusercontent.com/csdvrx/CuteVim/main/record...
Also, like the author I have a shortcut to change themes (F9) and another to toggle invisible chars (F8), and I try to use the top of the screen as much as possible (I show the offset in hex, the row and column position etc).
I like how vim is modal, but some Windows shortcuts (like Control-C) just make too much sense to given them up on Linux: I have put `stty intr ^X` because using Shift-Control-C to copy from the terminal was way worse.
Having a few chording shortcuts give you the best of both worlds!
BTW, all of the other shortcuts proposed on this site make a lot of sense to me: I do expect Ctrl-F to search, and Ctrl-T to open tabs, I think I will copy a few :)
- arcanemachiner 3y agoBack in my day, when we pressed Ctrl+S, the terminal froze, and that's just the way we liked it. https://unix.stackexchange.com/questions/12107/how-to-unfreeze-after-accidentally-pressing-ctrl-s-in-a-terminal https://unix.stackexchange.com/questions/12107/how-to-unfree...
- kevindamm 3y agoCtrl-Q whew
- csdvrx 3y ago> Back in my day, when we pressed Ctrl+S, the terminal froze, and that's just the way we liked it. I don't think anyone needs (or even wants) the terminal to freeze on such a common shortcut in 2024. Personally, I have reclaimed Ctrl S for word delete (usually done by Alt-d)
- aidenn0 3y agoRelated: why does the shortcut to delete back a word (^W), close my browser tab?
- pests 3y agoDelete current word, delete current tab. Its related.
- troupo 3y agoThat's why I think MacOS is superior: it actually uses the "meta" key for useful stuff. So, Cmd-W would close the tab, and Ctrl-W would probably still delete a word (can't check right now, but it has a lot of 80s-era keyboard shortcuts for text still working)
- bloopernova 3y agomacOS uses a lot of Emacs bindings. Ctrl-a for beginning of line, ctrl-e for end, etc etc. And, agreed, macOS' use of shortcuts is fantastic and I wish I could replicate it on Linux.
- anthk 3y agoIf you use gnome/xfce: gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs" xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs Try both commands.
- bloopernova 3y agoVery cool! I also want to use Command (Super or Hyper?), which really improves keyboard shortcuts. Command + left/right = jump to beginning or end of line, Option + left/right = jump to beginning/end of word. I know you can do the same with Control + Shift, but some apps don't support it. Plus Cmd+c/x/v for copy/cut/paste works fine in terminals, I don't have to remember to "code switch" my shortcut "language". Cmd+Backspace deletes the whole line, etc etc.
- ttyprintk 3y agoWe should concede that /etc/profile ought to disable that with stty by default.
- u801e 3y ago> I like how vim is modal, but some Windows shortcuts (like Control-C) just make too much sense to given them up on Linux Ctrl-C does work in the GUI. That said, one thing I like about Linux is being able to highlight text using the mouse and then pasting it by middle-clicking. I don't have to interact with the keyboard at all to copy and paste text that way.
- ttyprintk 3y agoRemapping Ctrl-O denies the ability to switch modes. That’s what turns this from simply an opinionated config to a breaking change.
- csdvrx 3y agoThat's fair, changes should try to preserve existing uses