this post was submitted on 15 Jun 2023
70 points (100.0% liked)

Technology

37739 readers
616 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

More fun with VIM, it only takes six key strokes to save and quit.

top 15 comments
sorted by: hot top controversial new old
[–] crmsnbleyd@sopuli.xyz 9 points 1 year ago (1 children)

:x are also four. I don't think you can do it in fewer strokes. In Windows I would usually use Ctrl+S, Alt+F4. Also four. You could maybe do Alt+F4 or Ctrl+Q or whatever and just hit Enter when the software asks to save unsaved changes. That'd be three strokes.

[–] andrew@feddit.de 5 points 1 year ago (1 children)

This was by far the funnest way to learn VIM for me: https://vim-adventures.com/

[–] cavemeat@beehaw.org 1 points 1 year ago

Oh this is awesome. I've been wanting to learn vim and this looks like a super fun way to do it.

[–] neotecha@beehaw.org 4 points 1 year ago

Always fun to learn something new. I've primarily used vim since 2016, and i never knew g_ to jump to last non-space character in the line

[–] CinnamonTheCat@beehaw.org 3 points 1 year ago (2 children)

I've tried TUI text editors before but they've never really clicked with me.

[–] Penguincoder@beehaw.org 8 points 1 year ago* (last edited 1 year ago) (2 children)

By TUI do you mean VI/M? Or something like helix or slap??

VI is usually on 99% of the time on any Linux system. That's why I use VIM, to ensure I know what to do for editing and how to do it at a basic level. I mean personally I have a bunch of config settings and plugins, but I an do basic tasks with VI and feel comfortable. I believe that is important for a Linux admin.

[–] dave@feddit.uk 4 points 1 year ago

Totally. If you don’t know the vi basics and you’re stuck in some state of disrepair or emergency, you’re going to have a much worse time getting things sorted :)

I much prefer gui editor with all the frills for complex coding. But the guy I’m working with right now, it’s vim all the way for him and honestly he’s about as fast as I am at most things.

[–] CinnamonTheCat@beehaw.org 2 points 1 year ago (1 children)

Like I know how to use it but it never really clicked for me, I've tried helix, neovim, vim and nano but it doesn't click for me.

[–] tshannon@beehaw.org 3 points 1 year ago (1 children)

When it does click with you, them every other editor feels a little broken. It's a double edged sword.

[–] hundertzwoelf@feddit.de 1 points 1 year ago

Yeah, seeing how people use arrow keys or their mouse to navigate around a text document made me realize how little I wanna go back.

[–] brunox@feddit.cl 2 points 1 year ago* (last edited 1 year ago)

Both Vim and Git really clicked with me when I had to revise and rewrite a paper. Sure, my graphic editor could do most things, but it really felt comfortable and quick on vim. I now use it for all my text editing, but that was my click moment.

[–] DuffmanOfTheCosmos@beehaw.org 2 points 1 year ago (1 children)

Been using VIM since 2011ish and I can't imagine using anything else.

[–] Zapp@beehaw.org 1 points 1 year ago

Same here! But only because I haven't figured out how to exit yet.

[–] Kupo_Knight@kbin.social 1 points 1 year ago
load more comments
view more: next ›