.
vlad ( @vlad76@lemmy.sdf.org ) 30•3 months agoNano ftw
Match!! ( @match@pawb.social ) English23•3 months agoeasy mnemonic to quit vim: imagine you’re captain Picard in the middle of typing “:3” when Q shows up
Crow ( @Crow@lemmy.blahaj.zone ) 17•3 months agoOr, hear me out, : because you’re doing a command, and then q for quit. Probably make it wq too, to write and quit
did you know there is a vim tutor for learning how to vim?
Crow ( @Crow@lemmy.blahaj.zone ) 1•3 months agoYeah, but imo the best way to learn vim is to do it as you go. You only really need to know getting in and out of insert and how to write and quit. Once you’ve got that, if you wanna do something and think there’s probably a better way than moving there with the arrow keys, look it up on the Internet, remember the thing, do it a few times and you’ve learned a new thing about vim. “Surely there’s a search and replace function” yeah, is substitute with the s command. “I wanna navigate quicker within lines” use f, t and their capital versions. Combine with the quickscope plugin and you’re golden. Learn the stuff you want to use, don’t memorize commands you don’t need
Cethin ( @Cethin@lemmy.zip ) English5•3 months agoNo, that doesn’t make any sense. We need something convoluted so that people don’t remember it next time it’s needed.
Cwilliams ( @Cwilliams@beehaw.org ) 2•3 months agoTell that to my history teacher…
Simon ( @Simon@lemmy.dbzer0.com ) 2•3 months agoThat’s one too many letters. Need to use x for maximum efficiency gains.
TxzK ( @TxzK@lemmy.zip ) 22•3 months agoVim user here. The only way to exit vim is to pray to the Vim gods and sacrifice your first born, hoping that they’ll cause a cosmic ray to hit the right spot in the memory to flip the right bit that causes it to exit. There are no alternatives.
Revan343 ( @Revan343@lemmy.ca ) 12•3 months agoI usually just power-cycle the machine
Simon ( @Simon@lemmy.dbzer0.com ) 1•3 months agoAre you guys serious? Command q. or x. or wq. or use a proper fucking terminal so you can ctrl -z and resume.
Cethin ( @Cethin@lemmy.zip ) English17•3 months agoThese is one of the oldest Linux memes. No, they aren’t serious. I have a hard time believing anyone here doesn’t actually know how to exit vim properly.
Revan343 ( @Revan343@lemmy.ca ) 9•3 months agoI have a hard time believing anyone here doesn’t actually know how to exit vim properly.
You power cycle the machine, then run
apt-get update && apt-get install nano
, right?Fuckin \s, just in case that wasn’t clear
Revan343 ( @Revan343@lemmy.ca ) 3•3 months agoI am non-serious, I just don’t like vim (or emacs; if I’m editing a text file in a terminal I want nano, or I append manually with pipes as Linus intended).
Most of my systems have X11 and some basic GUI text editor, my server is the exception that proves the rule. There is generally no actual reason to use Vim except liking Vim, or wanting to learn to like Vim.
For those that do like Vim, or want to learn it for historical reasons? Good on you, have fun.
If you like emacs fuck off though.
Hexarei ( @Hexarei@programming.dev ) 4•3 months agoThe main reason for using (neo)vim is motions and text objects. Pretty cool to be able to type
cxia, ]a, cxia
to swap two function parameters in code. Ordaf
to delete a whole function.Even just f to jump to a specific character later in the line, or t to jump up to that character are absolutely life changing.
I love love love editing HTML in neovim with the ability to do stuff like
dst
for “delete surrounding tag” orSt<div>
to surround the current selection with a new tag. I have yet to find another editor that can do stuff like that with just a couple key presses.</div> Revan343 ( @Revan343@lemmy.ca ) 2•3 months agoAs long as you don’t use emacs :P
Hexarei ( @Hexarei@programming.dev ) 1•3 months agoI’ve only ever used it in evil mode, and it’s not the same
Simon ( @Simon@lemmy.dbzer0.com ) 2•3 months agoAmen
snaggen ( @snaggen@programming.dev ) 14•3 months agoI have been a vim user for more than 20 years. I tried to quit for a couple of years, but now I have just accepted my faith.
swab148 ( @swab148@startrek.website ) 11•3 months agoJust because this is a vim meme, does anyone know how to copy text from one instance of vim to the other?
embed_me ( @embed_me@programming.dev ) 8•3 months agoYou can yank text to system clipboard buffer ie +. Then paste (put) from the clipboard to any other vim process.
Keep in mind you should have clipboard support in your vim. If you’re on ubuntu, install vim-gtk and you should be good
swab148 ( @swab148@startrek.website ) 1•3 months agoI’m on Debian, but my VM is an Ubuntu server, so that should work!
Mohaim ( @Mohaim@beehaw.org ) English8•3 months agoInstall xclip then press "+y (double-quote plus-sign y) to yank to system clipboard then "+p to put from sys clipboard
Doc Avid Mornington ( @docAvid@midwest.social ) English7•3 months agoJust use a single instance of Emacs to edit everything everywhere all at once. You can even use vim keybindings if you have no taste.
swab148 ( @swab148@startrek.website ) 1•3 months agoEmacs is more for devs though, yeah? I’m just a lowly sysadmin in training.
Doc Avid Mornington ( @docAvid@midwest.social ) English1•3 months agoI think Vim is more popular with sysadmins because, historically, you could count on Vi or Vim being available on just about any server you had to do some work on, while Emacs might not be. That’s still probably somewhat true, although in the world of clouds, containers, and source-controlled, reproducible configuration, it’s probably less common to edit files in place on a server.
However, with Emacs tramp, you can edit files just about anywhere you can access, by any means, even if there is no editor installed there at all, using your local Emacs, with all your accustomed configuration. Like popping open a file inside a container running on a remote server by ssh, something I’ve done a lot of lately, debugging services running on AWS ECS.
theFibonacciEffect ( @theFibonacciEffect@feddit.de ) 3•3 months agoI think you can just use y and p
Traister101 ( @Traister101@lemmy.today ) 2•3 months agoInstance of Vim? Swap buffers fool
swab148 ( @swab148@startrek.website ) 1•3 months agoWould this work if one of those instances was in a VM?
xigoi ( @xigoi@lemmy.sdf.org ) 9•3 months agoIs there any playlist that wouldn’t be improved by adding Cat by C418 at the end?
there aren’t.
& most people don’t even know what/ who C418 is…
stebo ( @stebo02@lemmy.dbzer0.com ) 5•3 months agomost people don’t even know what/ who C418 is…
most people would recognise his songs though…
Cethin ( @Cethin@lemmy.zip ) English5•3 months agoHe was that guy working on the music for that 0x10c game, right?
quylaa ( @quylaa@lemmy.ml ) 4•3 months agoPour one out for 0x10c
Kogasa ( @kogasa@programming.dev ) 2•3 months agoHaven’t heard of 0x10c since 2012. Shame it was canceled, I love Elite and would love more games in its niche
Cethin ( @Cethin@lemmy.zip ) English2•3 months agoI’ve found Ostranauts recently, and it’s really fun and I feel has some of the same vibes. Not even close to the same though, being able to program your own systems that you put together. I still sometimes think about what 0x10c could have been. I’ve considered doing something similar myself, but I haven’t gotten around to it. Maybe someday something similar will exist.
Gobbel2000 ( @Gobbel2000@feddit.de ) 2•3 months agoCat by C418 is literally the only piece in the list I recognize.
Cwilliams ( @Cwilliams@beehaw.org ) 1•3 months agoMINECRAFT!!!
autokludge ( @autokludge@programming.dev ) English9•3 months agoWhy do you want to exit? Just
:terminal
RIP to people who never shutdown or restart their PCs
wise_pancake ( @wise_pancake@lemmy.ca ) 6•3 months agoLess is more, or rather, more is less
less really is more with more features. and more IS less with less features
LinearArray ( @LinearArray@programming.dev ) English5•3 months agoSomeone finally exited vim
Simon ( @Simon@lemmy.dbzer0.com ) 4•3 months agoFunny story. After you start you can’t go back. What is a nano?
Edit: If ctrl-z doesn’t get you out of vim you need to install another terminal or more likely just ditch your distro altogether.
Kericake🥕 (They(/It)) ( @RiikkaTheIcePrincess@pawb.social ) English3•3 months agoIt’s really not that hard v.v Caring to learn all’ the shenans, that’s the hard part. Same goes for Emacs. Archaic interfaces for the sake of archaism or “cool cred,” I say 🤷
Edit: Also haha the joke is funny :P
Kerb ( @Kerb@discuss.tchncs.de ) 1•3 months ago:killall -9 vim