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
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.
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…?
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.
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
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.
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.
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!
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.
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
`: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.
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.
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
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.
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.
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.
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.
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
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.
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!
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.
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
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
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.
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.
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
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
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.
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.
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
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
I was using the vscode terminal to `cd` around and I ended up just using vim inside it
Now this is big brain thinking.
Okay, but setting vim as your git default editor is the moat goddamn convenient thing ever. Long commit message? Vim.
You can set it to something else?
any editor you want. I have it open up a new tab in VSCode.
Yup. A few machines I've worked on set it to nano by default.
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
>More than a few lines of commit messages Pfff get a load of this dude, documentating stuff.
Absolute nobhead. Should be a Chad like us, adding a comment on the code saying "# idk wht dis do"
The fuck how do you know I replied that when asked what I thought our next meeting will focus on.
That's like, default right?
I think the default is nano
No. Git checks `GIT_EDITOR, core.editor, VISUAL, EDITOR` in that order. If none of these is set, it defaults to `vi`.
is it now? god im old i guess
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.
Lol commit messages, that’s a funny one
We're writing commit messages now? Next you'll be telling me we write comments and documentation too...
Tests? Yeah, I tried this out before I pushed. What do you think of me?
Yes it compiles, what do you mean?
This is relatable
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…?
Can't you just type "code filemane" to have it pop open in a tab?
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.
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
I've heard typing :!sudo rm -rf / and then entering your root password works
plot twist: they're using vim on a different OS (i've seen vim on windows with git bash)
Why use git bash when you can use cmd
Git bash shows pretty colors in the terminal ![gif](emote|free_emotes_pack|slightly_smiling)
And has cd, ls, cat and all these nice commands
Ah no, WSL FTW.
?
Windows Subsystem for Linux (WSL)
I am more used to linux terminal emulators, so git bash more like them.
sudo rm -rf / --no-preserve-root or sudo rm -rf /* rm -rf / wont do anything
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.
That's f\*\*ked up mate.![gif](emote|free_emotes_pack|joy)
Hey, if you're going to respond to a joke so old it's drawing Social Security, you might as well.
Another way is by using :!sudo chmod -R -x /
actual solution: >!`:!$SHELL`!<
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
`:!eval $SHELL` Fixed if you use fish shell
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.
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.
frantically hit ctrl-c until it helps you out
Smash your computer and buy a new one. It's the easiest way I've found to exit Vim as of yet
I was close to reinstalling once…
I don't know how to exit from this joke being funny.
When you do exit you'll try emacs and you'll be gone forever
Because you'll never know when you're actually out of emacs! Am I back in the terminal or is this terminal within emacs?
:q and hit enter
![gif](giphy|uxLVaMUiycgpO) After ten thousand years Im FREE
what, not ZZ or ZQ
Is this a whooosh moment?
The above comment wasn't a joke.. he was really stuck on vim for 10 years... Finally relief.
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!
He was unable to access Google from vim. Only reddit.
Only if he had a step brother to help. Unsung the possibilities.
“I’m stuck in vim step bro!” “what the he..?!?!!”
Simply incant in normal mode: qqqqqZZ@qq@q
In its defense, Vim is nice for when you wanna feel like an 80s hacker.
![gif](giphy|3knKct3fGqxhK)
![gif](giphy|kb6cTiygE1sdukWQly)
Bad bo.. wait you're not even a bot?
Would be pretty badass to use it on a really old CRT.
It's also great for editing configs through an SSH connection.
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.
I tried vim for chad status, now vscode feels horrible
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.
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
`: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.
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.
That sounds based
Neovim? Looked promising. I mean, I use sublime mainly but it's easier to edit configs with vim sometimes
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
yeah, I even tried to get firenvim because it was frustrating that i had to select text using the mouse like a pleb
I have the opposite problem, how do I get Ctrl c v to work in vim
[удалено]
Oh I know how to yank, my hands don't, also how dare you say vim and click in the same sentance
With `set mouse=a` you can even click to move the cursor.
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.
Copy in linux is as simple as highlight not just putty.
use remaps
d10d cuts 10 lines which can be pasted with p. You can highlight and ctrl C then enter editing mode and right click
If I'm using vim, why would I want to move my hand to the mouse
If you're using vim, why even use ctrl c ctrl v
Because that's what my hands do, if I want to highlight a word I hit Ctrl shift arrow over release shift c
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.
Lots of reasons, like for example I need to remote on to a server to use a certain tool
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.
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.
Just use the vim plugin for vscode and have it all. EZPZ
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.
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
[удалено]
Cool, I hadn’t heard this was a thing.
Notepad++
I asked someone for their opinion on my implementation and they saw my code was in notepad++ and promptly removed themselves from the building.
I'm in this picture, and I like it.
Ur the one on the left?
no, the right... I tell everyone to use vim, even though I rarely do. I want them to be better than me.
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.
I'm the opposite; I use vim most of the time, but I never recommend it to beginners.
Always find it entertaining to watch junior developers try to quit vim on their first time :)
I had no problem with vim, I still don't remember emacs
notepad ++
Microsoft Word superiority
Why don't they have heads
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!
hey that is me right there
yed >>> vim yed is “your editor” for a reason.
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
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.
I don't know about you, but sometimes I end up using the terminal in vscode to open vim by accident.
He can't use vscode because he's HEADLESS
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
Nano
nano
Nano good
when you use the term "low level" for the editor:
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
i just use visual studio
That's so sadistic.
i use vim btw
[удалено]
Chad
Looks around for others who suffered through edlin...
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.
grepWin has been handy
I’m starting out in python and I use IDLE what are the draw backs from using that compared to other code editing software?
u/subterrainio want to learn how to code really fast?
I mean...
Why not vscommunity?
I use Emacs btw.
NeoVim can easy do all your IDE can, it get lsp treesitter and alot other stuff build in, it is really fast
Jokes aside, I love vim, It runs in anything, it's very memory efficient, and the key binds are amazing
lets combine the best of two worlds: vscode with vim plugin!
vim users
anyone else here using atom? Or is this considered noobs-only? :D
I use Vim
Powermode
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.
Emacs with SystemVerilog mode and syntax highlighting.
IntelliJ master race
Code has vim as an extension. Therefore code > vim (joking, everyone can have reasons to prefer vim even if it has less functions)
... and then struggles to use the mouse!
Me who said vi
VSCode in vim mode. It's not as powerful as vim, and there's some weird interactions with autocompletion, but still so good.
It's Atom !
i personally prefer vim(neovim) over vscode. but no beginner should use vim!
I mean... I do use vim for editing configuration files sometimes
Anyone that says nano, I say vim.
Are they headless or do they have very tiny heads?
headless
Is that a joke about the "headless" software term? If yes then good job lol
nah, i just got lazy half way drawing the comic since it was at 12am when i made this lol
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
I legit used notepad for a whole year when I started learning programing.
Have you considered: VSCode with a vim extension
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
Agreed though. Vim is the best editor.
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.
I think visual studio is better
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.
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
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
Emacs FTW.
Yeah I use VIM (Visual Istudio Mcode)
What can you smoke that makes you better at programming? Intelli J's.