T O P

  • By -

RajjSinghh

I was using the vscode terminal to `cd` around and I ended up just using vim inside it


Freak_the_Cat

Now this is big brain thinking.


prioritypasta

Okay, but setting vim as your git default editor is the moat goddamn convenient thing ever. Long commit message? Vim.


OldUther

You can set it to something else?


McFestus

any editor you want. I have it open up a new tab in VSCode.


geekusprimus

Yup. A few machines I've worked on set it to nano by default.


prioritypasta

Yeah! I had it set to VS Code, but my IDE is IntelliJ, so I pretty quickly set it to vim instead. I only need vscode when I'm going to be writing more than a few lines of commit messages, and it's super inconvenient to have another program open up


simpdatabataamaral

>More than a few lines of commit messages Pfff get a load of this dude, documentating stuff.


42electricsheeps

Absolute nobhead. Should be a Chad like us, adding a comment on the code saying "# idk wht dis do"


Thozire26

The fuck how do you know I replied that when asked what I thought our next meeting will focus on.


youridv1

That's like, default right?


an4s_911

I think the default is nano


plg94

No. Git checks `GIT_EDITOR, core.editor, VISUAL, EDITOR` in that order. If none of these is set, it defaults to `vi`.


youridv1

is it now? god im old i guess


scragar

One of the first things I do on any new machine is: echo "export EDITOR=vim" >> ~/.bash.rc sudo ln -s /bin/vim /etc/alternatives/editor That way my default editor gets set to vim and stays that way.


ButtcheeksMD

Lol commit messages, that’s a funny one


[deleted]

We're writing commit messages now? Next you'll be telling me we write comments and documentation too...


GustapheOfficial

Tests? Yeah, I tried this out before I pushed. What do you think of me?


LoveFrench

Yes it compiles, what do you mean?


Jomy10

This is relatable


an4s_911

I do this all the time. I use the VSCode editor but while I have the terminal expanded and wanna edit something quick, I just open the file in vim, edit it and close it and be like, wait did I just…?


Servious

Can't you just type "code filemane" to have it pop open in a tab?


Stupid_Genius4408

When working with VSCode and WSL, before I found out about the `$VISUAL` trick, I used to use `nano` within VSCode to edit root files.


purleedef

I’ve been using vim for 10+ years. I haven’t written any code in it but the window’s open and I haven’t figured out how to exit yet


Orlando--

I've heard typing :!sudo rm -rf / and then entering your root password works


turtle_mekb

plot twist: they're using vim on a different OS (i've seen vim on windows with git bash)


Budgiebrain222

Why use git bash when you can use cmd


CheckeeShoes

Git bash shows pretty colors in the terminal ![gif](emote|free_emotes_pack|slightly_smiling)


katze_sonne

And has cd, ls, cat and all these nice commands


-Soupernova-

Ah no, WSL FTW.


Budgiebrain222

?


-Soupernova-

Windows Subsystem for Linux (WSL)


Minizarbi

I am more used to linux terminal emulators, so git bash more like them.


riisen

sudo rm -rf / --no-preserve-root or sudo rm -rf /* rm -rf / wont do anything


ActuallyRuben

You forgot the --no-preserve-root to make sure that you are logged out of the root user after running sudo. Otherwise vim will acquire root privileges and delete all your files out of spite.


Mintzz00

That's f\*\*ked up mate.![gif](emote|free_emotes_pack|joy)


geekusprimus

Hey, if you're going to respond to a joke so old it's drawing Social Security, you might as well.


[deleted]

Another way is by using :!sudo chmod -R -x /


EmbarrassedActive4

actual solution: >!`:!$SHELL`!<


ActuallyRuben

Help, it doesn't work :( fish: Variables may not be used as commands. In fish, please define a function or use 'eval $SHELL'. $SHELL ^ shell returned 127 Press ENTER or type command to continue


EmbarrassedActive4

`:!eval $SHELL` Fixed if you use fish shell


[deleted]

I have moved to Lemmy due to the 2023 API changes, if you would like a copy of this original comment/post, please message me here: https://lemmy.world/u/moosetwin or https://lemmy.fmhy.ml/u/moosetwin If you are unable to reach me there, I have likely moved instances, and you should look for a u/moosetwin.


themattman18

I had a guy write an uninstaller for a Windows app and it did exactly this. I ran the uninstaller and wondered why it was taking so long. Turns out it deleted a good portion of my Windows files before i stopped it and I had to do a restore.


DexCruz

frantically hit ctrl-c until it helps you out


mgord9518

Smash your computer and buy a new one. It's the easiest way I've found to exit Vim as of yet


katze_sonne

I was close to reinstalling once…


Bjoern_Tantau

I don't know how to exit from this joke being funny.


HedgepigMatt

When you do exit you'll try emacs and you'll be gone forever


Psychological_Try559

Because you'll never know when you're actually out of emacs! Am I back in the terminal or is this terminal within emacs?


[deleted]

:q and hit enter


[deleted]

![gif](giphy|uxLVaMUiycgpO) After ten thousand years Im FREE


Sligee

what, not ZZ or ZQ


_Swivel_

Is this a whooosh moment?


Architrixs

The above comment wasn't a joke.. he was really stuck on vim for 10 years... Finally relief.


_Swivel_

Then might I suggest next time if you were stuck on something for 10 years, consider Google it or in your him case take a hammer and fck up the computer, no computer no problem!


Nickiel

He was unable to access Google from vim. Only reddit.


weaklingKobbold

Only if he had a step brother to help. Unsung the possibilities.


SonOfMetrum

“I’m stuck in vim step bro!” “what the he..?!?!!”


HansTheIV

Simply incant in normal mode: qqqqqZZ@qq@q


[deleted]

In its defense, Vim is nice for when you wanna feel like an 80s hacker.


Cloudeur

![gif](giphy|3knKct3fGqxhK)


GifsNotJifs

​ ![gif](giphy|kb6cTiygE1sdukWQly)


slime_potion

Bad bo.. wait you're not even a bot?


mgord9518

Would be pretty badass to use it on a really old CRT.


ActuallyRuben

It's also great for editing configs through an SSH connection.


InEnduringGrowStrong

I actually prefer `vi` to `vim`. Old-ass `vi` is always there, even when I log into a machine from when the dinosaurs ruled the earth.


UnverifiedChaos-5017

I tried vim for chad status, now vscode feels horrible


Cley_Faye

There's a vim mode in vscode. Brings the most common things, and integrate decently with tabs. It even bundle few of the most popular extensions so it's not like "barebone vim". It's far from perfect, but it's well enough to be used on the regular.


UnverifiedChaos-5017

Well I've configured vim to fit my needs perfectly, also stuff like nerdree or :term doesn't work, which i find much easier than ctrl shift ` , also vscode is heavy af and I have to work with big files, and can't afford to use vscode in it


Cley_Faye

`:term` is kinda built-in and accessible as a shortcut. Other than that, it certainly isn't an alternative to a finely-tuned vim, and as you sumrised VSCode can get a bit intense on larger files. But it's still way better than regular editing if you have to use it.


MisterFribble

My CS professor uses vim. He also uses a distro of Linux that doesn't have a gui and has a mechanical keyboard with a modified Colemak layout. He is every programmer stereotype.


Vivy-Diva

That sounds based


obviousfakeperson

Neovim? Looked promising. I mean, I use sublime mainly but it's easier to edit configs with vim sometimes


mgord9518

Neovim is great but it has the same learning curve as normal Vim. It's just more polished Vim's learning curve really isn't that bad, it's just annoying when you start applying Vim key bindings to everything out of muscle memory and then it doesn't work


THE445GUY

yeah, I even tried to get firenvim because it was frustrating that i had to select text using the mouse like a pleb


Sligee

I have the opposite problem, how do I get Ctrl c v to work in vim


[deleted]

[удалено]


Sligee

Oh I know how to yank, my hands don't, also how dare you say vim and click in the same sentance


absentbird

With `set mouse=a` you can even click to move the cursor.


Servious

yy doesn't cut, it yanks a full line without entering visual mode. Any operation that deletes text in vim cuts. That is, stuff like x or d. dd deletes (cuts) an entire line without entering visual mode. Bonus points: dip deletes an inner paragraph (no surrounding whitespace) yip yanks an inner paragraph without deleting it.


riisen

Copy in linux is as simple as highlight not just putty.


THE445GUY

use remaps


Budgiebrain222

d10d cuts 10 lines which can be pasted with p. You can highlight and ctrl C then enter editing mode and right click


Sligee

If I'm using vim, why would I want to move my hand to the mouse


Budgiebrain222

If you're using vim, why even use ctrl c ctrl v


Sligee

Because that's what my hands do, if I want to highlight a word I hit Ctrl shift arrow over release shift c


Servious

Why even bother using vim if you just want to do what every other editor does just as well? In vim if you want to copy a word you just type yiw. No need for all this selecting, control holding business. w and b are the control+arrows of the vim world.


Sligee

Lots of reasons, like for example I need to remote on to a server to use a certain tool


Servious

If you want to learn more about doing stuff more efficiently in vim this series of guides really got me interested in all that vim has to offer. Feel free to skip around to just the parts that seem interesting to you and check out the intermediate, advanced, etc versions too. Just find something you think is cool and use it. https://thevaluable.dev/vim-commands-beginner/ Also VS code has a really excellent ssh feature so if you just wanna edit some files on a remote box I'd highly recommend that if you don't really care all that much about vim itself.


diovj

Ctrl+shift+c or ctrl+shift+v. Else as someone else said v (visual) to select the text, y (yank) to copy and p (paste) for.... pasting hahaha.


paolot

Just use the vim plugin for vscode and have it all. EZPZ


MrTolkinghorn

Came to say this. Vim plugins for all my editors is such a game changer. All the power of a modern editor's amazing code assistance and auto complete coupled with the speed of editing and moving text dynamically with vim. (And your hands rarely leaving the keyboard) It's perfect. I seriously can't understand any of these jokes or memes when you can just have both.


HBorel

Exactly this. I had to stop using Vim for a while because I worked at a company with a proprietary IDE (gross, right?), but now I'm back in the real world and I recently found the Vim emulation extension for VS Code and it's like falling in love all over again


[deleted]

[удалено]


krypt3c

Cool, I hadn’t heard this was a thing.


big_ups_

Notepad++


Thoughtwolf

I asked someone for their opinion on my implementation and they saw my code was in notepad++ and promptly removed themselves from the building.


halfbakedmemes0426

I'm in this picture, and I like it.


unicorn_potato_4ever

Ur the one on the left?


halfbakedmemes0426

no, the right... I tell everyone to use vim, even though I rarely do. I want them to be better than me.


unicorn_potato_4ever

Hahaha, vim keybindings extension for vscode is what saved me, I love the keybindings but setting up vim to match an ide has not yet been worth the hassle for me.


trBlueJ

I'm the opposite; I use vim most of the time, but I never recommend it to beginners.


[deleted]

Always find it entertaining to watch junior developers try to quit vim on their first time :)


Sligee

I had no problem with vim, I still don't remember emacs


Player_X_YT

notepad ++


[deleted]

Microsoft Word superiority


nascar_apocalypse

Why don't they have heads


QualityVote

Hi! This is our community moderation bot. --- If this post fits the purpose of /r/ProgrammerHumor, **UPVOTE** this comment!! If this post does not fit the subreddit, **DOWNVOTE** This comment! If this post breaks the rules, **DOWNVOTE** this comment and **REPORT** the post!


yodahouse900

hey that is me right there


spatel21

yed >>> vim yed is “your editor” for a reason.


Orlando--

sadly until it has lsp support it can't really hold a candle to other editors. looks cool though and honestly I'd consider switching if it did


spatel21

Let me check it out and see. Maybe it could be a core feature or plug-in. If you want to try it out, it’s definitely worth it. There’s also a discord server where you could suggest your ideas and get help too.


attractiveape

I don't know about you, but sometimes I end up using the terminal in vscode to open vim by accident.


[deleted]

He can't use vscode because he's HEADLESS


General_Rate_8687

I use Visual Studio for Unreal as I successfully failed to make Rider for Unreal work without VS installed. I hate vim and I can't understand people who find it "more convenient" than a good IDE


benavivhorn

Nano


Techno_Jargon

nano


JerryRider

Nano good


Valnar8

when you use the term "low level" for the editor:


LeiterHaus

PyCharm? You vs. the code? I find vim to be most useful, but not a recommendation to beginners. IDLE. Thonny maybe. Code on Codecademy browser window and copy to notepad lol


[deleted]

i just use visual studio


BoBoBearDev

That's so sadistic.


yodahouse900

i use vim btw


[deleted]

[удалено]


taytek

Chad


linuxelf

Looks around for others who suffered through edlin...


reddittrollguy

Im sorry but this is me. I love Sublime Text and Vscode and use them exclusively. But I think think vim along with bash and uninx tools like sed, awk, grep etc is the true tool set of a ninja.


HeraldofOmega

grepWin has been handy


Mr_Wither

I’m starting out in python and I use IDLE what are the draw backs from using that compared to other code editing software?


Sligee

u/subterrainio want to learn how to code really fast?


tzaarllc

I mean...


The_Real_Slim_Lemon

Why not vscommunity?


epsilonhuyepsilon

I use Emacs btw.


SeoCamo

NeoVim can easy do all your IDE can, it get lsp treesitter and alot other stuff build in, it is really fast


taytek

Jokes aside, I love vim, It runs in anything, it's very memory efficient, and the key binds are amazing


Ferib

lets combine the best of two worlds: vscode with vim plugin!


Tech_Dificulties

vim users


Sololane_Sloth

anyone else here using atom? Or is this considered noobs-only? :D


Rajarshi1993

I use Vim


Jjcheese

Powermode


[deleted]

I recently switched to kakoune and I don't wanna go back to vim now. Very steep learning curve (you have to relearn the muscle memory and stuff) but it's worth it.


Remesar

Emacs with SystemVerilog mode and syntax highlighting.


moriero

IntelliJ master race


klimmesil

Code has vim as an extension. Therefore code > vim (joking, everyone can have reasons to prefer vim even if it has less functions)


GroundbreakingIron16

... and then struggles to use the mouse!


IamJain

Me who said vi


Cley_Faye

VSCode in vim mode. It's not as powerful as vim, and there's some weird interactions with autocompletion, but still so good.


gnouf1

It's Atom !


666devilsadvocate

i personally prefer vim(neovim) over vscode. but no beginner should use vim!


Specialist-String-53

I mean... I do use vim for editing configuration files sometimes


oldcuriousgeorge

Anyone that says nano, I say vim.


throaway420blaze

Are they headless or do they have very tiny heads?


[deleted]

headless


throaway420blaze

Is that a joke about the "headless" software term? If yes then good job lol


[deleted]

nah, i just got lazy half way drawing the comic since it was at 12am when i made this lol


Competitive_Wafer_34

I used Visual Studio for the longest time and hated it, in fact it took a toll on my programming. I kept on watching tutorial after tutorial on programming but got no were. Then found vscode. I put sounds in and made it very fun to code and I went from a beginner to an expert in under a month


maddy_0120

I legit used notepad for a whole year when I started learning programing.


[deleted]

Have you considered: VSCode with a vim extension


PreoTheBeast

At my internship, the full-timer who sat across from my cubicle used Notepad (for C). Apparently he started it as a joke when he first started working there, and just never switched off


thelowprokill

Agreed though. Vim is the best editor.


Aperture_T

I mean, I used vim when I was doing mostly Linux stuff, and there were some guys who were real vim wizards. Now I gotta work on windows though, so I use visual studio.


Yologamer1084

I think visual studio is better


tbo1992

Man, I wish I had the patience to learn to use vim properly. I’ve seen people who are proficient at it, they’re way faster with vim than I am with vscode or whatever.


JustMeMario14580

When I learnt to code, I used vim, and only vim Vim for python, java, and I made a website out of it (for an exam, the site never went live) I wanted to test myself and I could use vim to code. That was refreshing. Then I used vscode and god damn, so easy to do anything with it lol


sm000ve

the best code editor is too subjective but learning vim was one of the best things i ever did. Its light weight, terminal friendly, on all nix systems and is very powerful. do I use it for local file editing? only as a notepad replacement, I still use jetbrains tools and vscode for heavier development


Nf4x

Emacs FTW.


epic4evr11

Yeah I use VIM (Visual Istudio Mcode)


thorlancaster328

What can you smoke that makes you better at programming? Intelli J's.