I have a custom keyboard with a QMK firmware. I enabled something called auto shift. It's the best. Just hold down the key you want shifted, and it auto shifts. I settled for enabling this for capital letters and symbols. So comfortable not to have to press the shift key.
So you hold down the first letter of each sentence longer so that it capitalizes rather than hold shift? That feels like it would completely mess with my flow when typing. Shift just happens naturally for me and I don't register I'm pushing it.
Exactly like that, yes. Or 1 for exclamation point, or 2 for @. Just like on a phone keyboard, with tap and hold for symbols and numbers and such.
I've had this keyboard for a few months now and I didn't enable it exactly for the reasons you mention.
I enabled it a few weeks ago now just to try it, and wow, I though I didn't notice myself pressing the shift key, that it "came naturally". Boy was I wrong. Now whenever I have to use the shift key it feels so cumbersome lol. Typing has become so comfortable now.
I spam the key. But that is such an extremely rare case that it's worth the trade-off. The firmware also does allow you to add a key to toggle auto shifting on and off, so I could just add that if I want, but I don't see the need.
If I need to repeat a character many times in a text editor, I'd just use the features of the editor to do so. Helix or Neovim has you covered for repeating characters thousands of times and copying it to the clipboard with a handful of keystrokes if you wish. But what an edge case though.
For double letters, I just double tap like you would normally when typing. 👍
Does this break games? Where in the input pipeline is the long press converted to shift? Being in the firmware implies that it's in the keyboard itself, so even games wouldn't be able to see that you're just holding W to go forwards.
ZZ Write current file, if modified, and close the current
window (same as ":x").
If there are several windows for the current file,
only the current window is closed.
ZQ
ZQ Quit without checking for changes (same as ":q!").
four. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to Ă—, click is six.
not necessarily. you could also have done a yank-paste, or a repeated action, or had a command output into the buffer.
it's a good habit to always leave the editor in normal mode between actions, because that makes for a cleaner edit history with smaller changesets in the undo tree.
Yeah, having used both, my preference is for Emacs, which also comes with the bonus of menu driven ways of doing most things when you've been away long enough to have forgotten a keyboard shortcut. I have always needed a cheat sheet handy when away from vim for a few months
71 Comments
Speiser0@feddit.org · 33 pts · 328d
On german QWERTZ keyboards, you need to use shift to make : and !.
Warl0k3@lemmy.world · 66 pts · 328d
On US ones as well, I think they just put the relevant key-symbols and excluded the combination press as they can be assumed.
victorz@lemmy.world · 9 pts · 328d
I have a custom keyboard with a QMK firmware. I enabled something called auto shift. It's the best. Just hold down the key you want shifted, and it auto shifts. I settled for enabling this for capital letters and symbols. So comfortable not to have to press the shift key.
BassTurd@lemmy.world · 22 pts · 328d
So you hold down the first letter of each sentence longer so that it capitalizes rather than hold shift? That feels like it would completely mess with my flow when typing. Shift just happens naturally for me and I don't register I'm pushing it.
victorz@lemmy.world · 6 pts · 328d
Exactly like that, yes. Or 1 for exclamation point, or 2 for @. Just like on a phone keyboard, with tap and hold for symbols and numbers and such.
I've had this keyboard for a few months now and I didn't enable it exactly for the reasons you mention.
I enabled it a few weeks ago now just to try it, and wow, I though I didn't notice myself pressing the shift key, that it "came naturally". Boy was I wrong. Now whenever I have to use the shift key it feels so cumbersome lol. Typing has become so comfortable now.
I use a ZSA Voyager for reference.
pipe01@programming.dev · 5 pts · 328d
What if you wanna repeat a character?
victorz@lemmy.world · 3 pts · 328d
I spam the key. But that is such an extremely rare case that it's worth the trade-off. The firmware also does allow you to add a key to toggle auto shifting on and off, so I could just add that if I want, but I don't see the need.
If I need to repeat a character many times in a text editor, I'd just use the features of the editor to do so. Helix or Neovim has you covered for repeating characters thousands of times and copying it to the clipboard with a handful of keystrokes if you wish. But what an edge case though.
For double letters, I just double tap like you would normally when typing. 👍
vaionko@sopuli.xyz · 2 pts · 327d
How does it work in games, like holding W?
NeatNit@discuss.tchncs.de · 1 pts · 327d
Does this break games? Where in the input pipeline is the long press converted to shift? Being in the firmware implies that it's in the keyboard itself, so even games wouldn't be able to see that you're just holding W to go forwards.
fmstrat@lemmy.nowsci.com · 4 pts · 328d
Yea, this would be super slow.
Aatube@kbin.melroy.org · 11 pts · 328d
Here in Tarzania we hold the superior and elusive ! key
lena@gregtech.eu · 2 pts · 328d
Slovenian ones too
Zagorath@aussie.zone · 2 pts · 328d
Same on Dvorak.
Though the custom coder's Dvorak I use while programming has a dedicated ! key. Shift still needed for : though.
lord_ryvan@ttrpg.network · 1 pts · 318d
That's basically all keyboard layouts.
SomethingBurger@jlai.lu · 1 pts · 327d
Common French W. AZERTY proves itself superior once again.
Ganbat@lemmy.dbzer0.com · 26 pts · 327d
vim something.log
esc
quit
exit
ctrl+x
ctrl+q
shushejehojwhatiwibaln):gufht;vfgs+_&f
reboot
nano something.log
tetris11@feddit.uk · 6 pts · 327d
fond memories of this distro
transientpunk@sh.itjust.works · 4 pts · 327d
git gĂĽddrspawndisaster@sh.itjust.works · 3 pts · 327d
Why would a text editor use a key like q to quit, obviously quit is + ZZ
thesmokingman@programming.dev · 25 pts · 327d
We’re just quitting without writing? Living very dangerously aren’t we?
shirro@aussie.zone · 25 pts · 327d
It is an emergency exit not a normal exit.
drspawndisaster@sh.itjust.works · 11 pts · 327d
When I accidentally edit a very important file very incorrectly and don't know what it looked like before
embed_me@programming.dev · 5 pts · 327d
The real emergency exit will leave swap files
vrighter@discuss.tchncs.de · 2 pts · 327d
ctrl+z, kill %1
thesmokingman@programming.dev · 1 pts · 327d
My initial take on the sticker was the whole “fire exit git commit git push;” I do see this other perspective now
OddMinus1@sh.itjust.works · 3 pts · 327d
It's advice for how most people end up in vim in the first place.
git commit(without -m)hamsda@feddit.org · 20 pts · 328d
Thank you very much. I sent this to my coworker who expressed interest in switching to vim :)
Lembot_0004@discuss.online · 18 pts · 328d
cupcakezealot@piefed.blahaj.zone · 17 pts · 327d
how to quit vim
SkaveRat@discuss.tchncs.de · 8 pts · 327d
Now it's just running on battery
2910000@lemmy.world · 13 pts · 327d
Works as long as you didn't put something silly in your nvim config like
thagoat@lemmy.sdf.org · 13 pts · 328d
5 key presses to save and exit. Frickin vim.
TragicNotCute@lemmy.world · 38 pts · 328d
I’m pretty sure that’s close without saving changes. :wq would be needed to save.
Aatube@kbin.melroy.org · 18 pts · 328d
To be precise, : means bring up commands, w means save, q means exit, and ! means force
HeurtisticAlgorithm9@feddit.uk · 13 pts · 328d
I think it's w = write and q = quit so the letters make more sense
glitches_brew@lemmy.world · 9 pts · 328d
Also :x is the same as :wq
darklamer@lemmy.dbzer0.com · 14 pts · 328d
glitches_brew@lemmy.world · 6 pts · 328d
TIL. Ty!
josefo@leminal.space · 0 pts · 327d
Why would you want to write again if no changes were made? It's some obtuse behavior
darklamer@lemmy.dbzer0.com · 6 pts · 327d
ryper@lemmy.ca · 5 pts · 328d
To be more precise, q means quit the current window. If you've split the window, e.g. with :split or :vsplit, use :qa to quit all windows.
villainy@lemmy.world · 10 pts · 328d
Or 3. Hold shift, press ZZ to save and quit ZQ to quit without saving.
5. Writing and quitting
ryper@lemmy.ca · 2 pts · 327d
Since people don't seem to realize that vim has a help system: You can get to this information with
:help quitor:help exitlime@feddit.nu · 8 pts · 328d
four. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to Ă—, click is six.
and that's before we replace the wq with x.
psud@aussie.zone · 3 pts · 328d
If we count the modifier keys:
Vim: esc, shift+:, w, q, Enter
Emacs: ctrl-s, crtl+x ctrl+c, or use the menu options
I use both, but find Emacs much quicker, though vim is easier to learn, though Emacs is easier while you're learning
lime@feddit.nu · 2 pts · 328d
i've never had the time to get into emacs, would love to though.
also, some layouts have the : on its own key, and if you include the esc in vim commands you're not using vim correctly :)
psud@aussie.zone · 2 pts · 328d
Surely you're editing right before exiting, why else would you be saving?
lime@feddit.nu · 1 pts · 327d
not necessarily. you could also have done a yank-paste, or a repeated action, or had a command output into the buffer.
it's a good habit to always leave the editor in normal mode between actions, because that makes for a cleaner edit history with smaller changesets in the undo tree.
...vim is sort of like driving stick in that way.
psud@aussie.zone · 1 pts · 327d
Yeah, having used both, my preference is for Emacs, which also comes with the bonus of menu driven ways of doing most things when you've been away long enough to have forgotten a keyboard shortcut. I have always needed a cheat sheet handy when away from vim for a few months
lime@feddit.nu · 1 pts · 327d
i've moved to helix, partly to stop myself tinkering and partly because the reversed command model is just easier. plus it has popup helpers.
NeatNit@discuss.tchncs.de · 6 pts · 328d
Depends how you count. Both
:and!require shift as well.MadMadBunny@lemmy.ca · 2 pts · 328d
Fuck it I’m pulling the power cord
Wiz@midwest.social · 1 pts · 326d
You can use ZZ as a shortcut!
marlowe221@lemmy.world · 10 pts · 327d
I believe that’s Vim for “Beam us out, Mr. Scott”
axEl7fB5@lemmy.cafe · 9 pts · 328d
[Esc] [Z] [Z]
chonglibloodsport@lemmy.world · 6 pts · 327d
Or just ZZ for me since I’m rarely in insert mode (I just press esc quickly after making an edit out of habit).
tetris11@feddit.uk · 3 pts · 327d
ZZTop could not be reached for comment
Wiz@midwest.social · 6 pts · 326d
ZZ for the win.
1984@lemmy.today · 4 pts · 328d
Or just ctrl-z to get out of it and "fg" to get back. :)
grue@lemmy.world · 2 pts · 327d
ctrl-z$ killall vimswab148@lemmy.dbzer0.com · 2 pts · 328d
Just alt+F4, you didn't need to edit that file anyways
deadbeef79000@lemmy.nz · 1 pts · 322d
Just buy a new computer.
twopi@lemmy.ca · 4 pts · 327d
Would it be
q a !?neblem@lemmy.world · 3 pts · 324d
You all exit your editor? How you do the rest of your computing?
/s with ♡ from an Emacs fan.
psud@aussie.zone · 3 pts · 322d
Emacs really is an excellent desktop environment
jezcaudle@infosec.pub · 2 pts · 327d
Where can I buy some of these please?
darkreader2636@lemmy.zip · 2 pts · 328d
yet here in trq i need to press shift in %80 of the keys (that's why i use micro)
somerandomperson@lemmy.dbzer0.com · 1 pts · 328d
the annoying thing about trq is that us is the default everywhere, so you can't press [İ] to type "i", it'll type a " ' " instead >:(
similar things for ":" and "-"
jenesaisquoi@feddit.org · 1 pts · 319d
Ctrl+] Shift+ZZ
Amateurs.
dubyakay@lemmy.ca · 1 pts · 327d
eigenraum@discuss.tchncs.de · 1 pts · 327d
MonkderVierte@lemmy.zip · 1 pts · 327d
GammaGames@beehaw.org · 1 pts · 328d