Commend9380,

Easy, just turn off computer.

Lime66,

Easy ESC ESC ESC ESC ESC ESC ESC ESC ESC :q! Or alternatively ESC :q!

Crass_Spektakel,
@Crass_Spektakel@lemmy.world avatar

That is just hilarious but also…

I just remembered that Bram Moolenaar, the author of vim has recently died…

He was a real good person. Back when he released his first vim for Amiga Computers I exchanged some emails with him and he handled even my less smart suggestions very professional.

I just take the chance to remind everyone to spend some money for his Uganda Charity.

Matombo,

Oh wow, that’s an easy way to not implement a feature ;)

homura1650, (edited )

Tricky question, but I think I have a solution:

:!readlink /proc/$PPID/fd/* | grep “$(dirname %)/.$(basename %).sw” | xargs -I{} rm “{}” ; kill -9 $PPID

isVeryLoud,

Technically correct

neo,
@neo@lemmy.comfysnug.space avatar

:q!

flop_leash_973,

A lot of my personal dislike for VIM would be done away with if it just had a helpful common keys cheat sheet (basic cursor navigation, edit mode, exit with and without saving, etc) at the bottom of the editor window like Nano does.

jayemar,

I understand where you’re coming from, but as a frequent user of vim I’d much rather have the additional line of text.

beastlykings,

It should be default on, with a setting to turn it off for power users

thecodeboss,

They could even have one of the commands on the cheatsheet be to hide it, so anyone who doesn’t want it will immediately see how to turn it off.

droans,

That makes sense, I mean your monitor can only fit like six lines of text.

corship,

Try nvim

eeleech,

Having the commands listed at the bottom by default is one thing i personally dislike about nano, because they take up space while being useless to someone knowing the commands (or at least knowing how to open the help in, which is what you can do in vim to achieve the cheat sheet). The alternative that vim uses, is to show the commands when starting the editor without opening a file.

Omniraptor,

is there not an option to turn them off??

redempt,

one of my favorite things about helix is how easily you can check the keybinds for certain actions - just space-? and then you can see a list of every command available (by description) and their keybinds, if they have one

lesnake,

Not to forget the buit in popup showing the shortcuts, similar to which-key, but built in

neo,
@neo@lemmy.comfysnug.space avatar

This is the only reason I have any idea how to navigate nano.

Serpardum,

It’s very easy to terminate vim. I just use the power button.

DNOS,

Uh… so u guys don’t change the PC each time that’s cool I would definitely try that …

DNOS,

Tried it’s a scam , doesn’t work

Patches, (edited )

If I could afford to change PC - I could afford real IDE

DNOS,

Yeah that’s the problem it’s so expensive not to mention when you buy a discounted one and the vim session is already open…

rustbuckett,

I just can’t quit you, vim!

Blyfh,
@Blyfh@lemmy.world avatar

You can’t just quit it. Vim is one hell of a drug.

Luvon,

If you want to learn vim, try the command vimtutor in a terminal

psud,

If anyone needs the command: :q!

If you want the computer to ask if you’re sure: :q

If you want to save: :wq

hansl,

ZQ

Astaroth,

and ZZ for save & quit

fl42v,

:cq because why not :)

intensely_human,

You’re nullifying that safety measure by doing this you know

Oszilloraptor,

Some people just want to see the world burning

ArmokGoB,

It’s the opposite of nerd sniping.

Zacryon,

If you want to save: :wq

Or :x

PoolloverNathan,

:wq will write even if you didn’t change anything; :x won’t. (similar to :w vs :up)

boatswain,

I prefer ZZ if I want to quit and save

hai,
@hai@lemmy.ml avatar

I think this is the most upvotes I’ve seen on a Lemmy post….

A2PKXG,
@A2PKXG@feddit.de avatar

Lemmy seems to be the old nerdy internet of the 90s, prior to the enshittification

registrert,
@registrert@lemmy.sambands.net avatar

I’d say more like the early days of reddit, the hardcore enshittification started around 2012-2015 IMO. The old-school nerds are still at it on IRC, Newsgroups and so on.

pimeys,
@pimeys@lemmy.nauk.io avatar

Don’t forget mailing lists! LKML FTW

h_a_r_u_k_i,
@h_a_r_u_k_i@programming.dev avatar

That’s why I like it. No BS, no ads, no commercials, no show-offs, etc. Just some people with a bit of free time share their knowledge and stories.

I do wish we have more vibrant non-tech communities, though.

psycho_driver,

I mean, it’s true.

I’ve been using linux pretty exclusively at home for almost 25 years now. Program. Script. Work in the shell a lot, and the other day I had to use vim and it took me a while to remember the basic commands. I’m a nano guy :\

DaTingGoBrrr,

I also started off using nano. Have you tried Micro? It’s like nano on steroids and with good keybindings

dan,
@dan@upvote.au avatar

At some point Nano added Ctrl+S for save. That’s all I needed. Its syntax highlighting is decent too.

vox,
@vox@sopuli.xyz avatar

ctrl w/o for save/save as are pretty easy to get used to tho

pascal,

Nano, Pico and Micro? is this editor trying to !compensate for something?

flubba86,

+1 for micro. I install it on every server I administer, and alias it to nano. If you’re a nano user and haven’t tried micro, I highly recommend it. It’s like nano, but built this century, it feels fast and modern.

BestBouclettes,

If you feel like it definitely give it another go. Vim (or neovim) is just insanely good once you’ve developed the muscle memory for the keybinds.
It takes a bit of time and practice but it’s actually fairly user friendly once you understand how it works. (c for change, y for yank, p for paste, e for end, b for beginning etc.)

ignotum,

I was a nano person for the longest time, was planning to try out vim but never did, until i saw a coworker using it and he explained a little about the vim “language” actually worked and how much you could do with it

With some encouragement from him and a week or two of reduced productivity i was able to do everything just as fast in vim as in nano, and it only got better from there, now i find any other editor slow and tiresome in comparison

pimeys,
@pimeys@lemmy.nauk.io avatar

If you want something that is quite a nice editor too but doesn’t require hundreds of lines of configuration, try helix. It also has nice help menus so it’s fast to learn. I’ve used vim since the 90’s and Emacs for many years, but nowadays I kinda just like hx how it just works with zero configuration for any programming language I need to work with.

gornius,

Honestly, if you work in a shell a lot, learning vim is a great investment. You’re gonna fly through files editing them faster than with any IDE.

flop_leash_973,

I’m with you on that. VIM is a good example of a tool that the deepness of the tool makes it aggravating to use for the 90% of simple use cases.

Unless you use VIM enough for the shortcuts to be second nature it is faster to install Nano, make the changes, and remove Nano than it is to use VIM.

mdurell,

Alt-F4

Somewhereunknown7351,
@Somewhereunknown7351@kbin.social avatar

Take my fucking upvote and leave

darcy,
@darcy@sh.itjust.works avatar

if your desktop environment uses alt+f4 to quit 💀

Bene7rddso,

If yours doesn’t use it, you know what it uses instead

darcy,
@darcy@sh.itjust.works avatar

very true.

thechadwick, (edited )

You don’t change Vim, Vim changes you. youtu.be/9n1dtmzqnCU

*edit: shortened and thanks! Did not know and gross…

kkard2,
@kkard2@lemmy.ml avatar
theRealBassist,

Good human?

But seriously that’s helpful info.

captain_aggravated,
@captain_aggravated@sh.itjust.works avatar

I noticed this, and was wondering what the hell was going on.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines