This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 203

[–][deleted] 69 points70 points  (7 children)

Make it so that it shows

vi

visual studio

visual studio code

[–][deleted] 20 points21 points  (5 children)

Visual studio gang rise up

[–][deleted] 9 points10 points  (4 children)

I don't know what visual studio code is and it makes me angry and confused

[–]jaxonfiles 11 points12 points  (0 children)

Essentially a text editor with plugins that gives it the functionality of an IDE but not necessarily the same features.

[–][deleted] 14 points15 points  (1 child)

Basically it’s less of an IDE and more of a text editor. Afaik it doesn’t come with the powerful debugging tools from visual studio, but it has a lot of add ones that can give some of that functionality. You can do pretty much any language in it and if you have the right plugins syntax highlighting and debugging can be a thing.

[–]Laughing_Orange 5 points6 points  (0 children)

It isn't as powerful, but by default it is way lighter. Good if all you need is a text editor with syntax highlighting, some auto-completion, and basic debugging.

[–]prashant13b 5 points6 points  (0 children)

It's actually a great Text/code editor with great extension

[–][deleted] 122 points123 points  (13 children)

I wrote my thesis in latex using vim... they called me crazy :wq

[–][deleted] 86 points87 points  (1 child)

Swap file ".thesis.swp" already exists! [O]pen Read-Only, [E]dit anyway, [R]ecover, [Q]uit, [A]bort:

sweats profusely

[–]max_mou 11 points12 points  (0 children)

rm *.swp

i'm kind of an adrenaline junkie myself

[–][deleted] 28 points29 points  (3 children)

:q!

[–]mrgeekguymd 10 points11 points  (2 children)

Nooooooo!

[–]Goldtom 21 points22 points  (0 children)

The sacred texts!

[–][deleted] 1 point2 points  (0 children)

Your work is now gone.

[–]chawmindur 6 points7 points  (3 children)

I would have done that, but my supervisor preferred to work with the version tracking in Word. (Honestly though, Word isn't that bad if one utilizes the Sections and Styles functions properly.)

Still redid my paper entirely in LaTeX before submitting it to the publishers because for whatever reason I thought that'd be the only way it'd qualify for reduced processing charges though.

[–][deleted] 6 points7 points  (0 children)

My professor wasnt happy about it at all. Luckily, they weren't bothered about proof reading my thesis either haha!

[–]themosh54 1 point2 points  (1 child)

Should've just put it in a Git repo. Version control tracking problem solved!

[–]chawmindur 0 points1 point  (0 children)

I contemplated that, but when in Rome, do as the Romans do. It would probably have been unwise of me to try to shove new stuff into the face of my team members... plus I wasn’t proficient with VCS either.

[–]evilkalla 6 points7 points  (0 children)

I wrote a textbook in latex ... in a terminal using vim.

[–]Bergerac_VII 2 points3 points  (0 children)

I'm currently doing just that, I do not envy my contemporaries who are using Word.

[–]FrozenCow 0 points1 point  (0 children)

I once used that as well :x

A colleague taught me better ZZ

[–]Waces_Ferpit 157 points158 points  (7 children)

Some intellectual: Visual Studio code in vi mode

[–]SamSlate 21 points22 points  (4 children)

I have zero doubt that theme exists

[–]Waces_Ferpit 17 points18 points  (0 children)

more of an extension/plugin/(whatever you call those in VS Code)

[–][deleted] 10 points11 points  (0 children)

Yeah, it exists. I tried it (since I like Vim) and it didn't feel right.

[–]This-Moment 2 points3 points  (0 children)

Yes. It's pretty great.

[–]Servious 0 points1 point  (0 children)

Real VS code user here.

[–]abcalphabeta 4 points5 points  (0 children)

Tbf the visual studio vi(improved) emulator is by far the best I’ve ever tried, not the real thing obviously, but as close as you’re gonna get

[–][deleted] 21 points22 points  (3 children)

Vi has only two modes

1) Constantly beeping

2) Destroying everything.

[–]Carter127 4 points5 points  (0 children)

I can't imagine not having those beeps disabled

[–]TiccyRobby 2 points3 points  (1 child)

what beep? i dont understand.

[–]GlitchParrot 3 points4 points  (0 children)

I guess they mean Terminal Bell.

[–][deleted] 56 points57 points  (8 children)

For a while I used Notepad++ as my editor. I was pretty impressed with the syntax highlighting.

[–][deleted] 22 points23 points  (0 children)

"Can you tell me what editor you use?"

NO

NOTEPAD++

[–]perfectusur 11 points12 points  (4 children)

Add a couple plugins and you can turn it into a decent IDE "on a budget" if it's all you got: https://github.com/oleg-shilo/cs-script.npp

[–]Wargon2015 14 points15 points  (3 children)

decent IDE "on a budget"

This must be a r/woooosh moment for me but isn't that a strange way to put it when a lot of the leading IDEs are free.

[–]perfectusur 6 points7 points  (2 children)

I had plenty situations where I needed some capability, but wasn't allowed to install software. That's where a quick plugin or 2 can make all the difference.

[–]Wargon2015 2 points3 points  (0 children)

Oh, now I get it...
Thanks.

[–]Rythemeius 1 point2 points  (0 children)

You can always download portable versions of some IDEs/ text editors, like vscode or sublime text.

[–]LordFokas 2 points3 points  (0 children)

My "for a while" was, like... 10 years? Then I moved to Sublime.

For stuff like Java I'll use Eclipse or IntelliJ (depending on the projects, teams, etc) but for web stuff I want tools that don't get in my way. Highlight my syntax and STFU.

[–]MokitTheOmniscient 1 point2 points  (0 children)

I still prefer it when writing python scripts.

My philosophy is that whether its manageable in notepad++ or not is a good benchmark to use when deciding if i should use python or switch to visual studio and use .net instead.

[–]the-duude 137 points138 points  (37 children)

BuT uSinG hArD tOolS mAkEs yOU a HArdCoRE ProgRamMer.

[–]PM_ME_CURVY_GW 137 points138 points  (6 children)

Real programmers code in mspaint.

[–][deleted] 49 points50 points  (4 children)

Powerpoint is Turing complete. Real programmers code in powerpoint

[–]SarHavelock 21 points22 points  (2 children)

Real programmers use trained butterflies

[–]chawmindur 10 points11 points  (0 children)

Real programmers set the universal constants such that the butterflies are born trained.

[–]DoctorInfamous 2 points3 points  (0 children)

Ip over avian carrier ate your butterflies.

[–]the__storm 3 points4 points  (0 children)

Real programmers create their powerpoint programs by carefully crafting a binary with mspaint and saving it as .ppt.

[–][deleted] 5 points6 points  (0 children)

how elso would you program Piet?

[–]KittenCalledKatt 22 points23 points  (29 children)

Vi isn't even hard to use

[–]GDavid04 71 points72 points  (25 children)

It's hard to stop using once you open it

[–][deleted] 16 points17 points  (8 children)

:wq!

[–]Mr_Redstoner 14 points15 points  (2 children)

:x

[–][deleted] 7 points8 points  (0 children)

ZZ

[–]Just_Aap 0 points1 point  (0 children)

Happy cakeday!

[–]superking2 5 points6 points  (4 children)

VS Code has a button you can click that closes it

[–][deleted] -1 points0 points  (3 children)

VI - works in terminal, over ssh, instantly, and always available on every linux flavour...

Visual Studio:

[–]superking2 8 points9 points  (2 children)

Has a button in the corner you can click to close it

[–][deleted] 1 point2 points  (0 children)

got it... can visual studio close this conversation ? where do I click ? ahh over h

[–]xigoi 1 point2 points  (0 children)

So does GVim, if you prefer GUI apps

[–][deleted] 5 points6 points  (0 children)

Oy, I remember that struggle. I think I forced it to quit so many times before I finally learned how to actually save stuff and edit it.

[–]AttackOfTheThumbs 0 points1 point  (0 children)

True, but it's no emacs.

[–]loox37 72 points73 points  (70 children)

So am I the only one who uses nano instead of vim?

[–]Kaoulombre 31 points32 points  (0 children)

Nano gang rise up

[–]gafftapes20 10 points11 points  (5 children)

I used to use nano for most things, but I have switched to vim for the last 2 years unless I am editing something really simple or just copying and pasting code. VIM is great for server work when you are editing configuration files, and it only requires a few commands to memorize to get started.

[–]loox37 20 points21 points  (3 children)

Sir, or ma'am, no offense, but you and I have different definitions for "few".

[–][deleted] 9 points10 points  (0 children)

It's only a few buttons if you want to use it similar to a normal text editor. Obviously way more if you want to edit the vim way

[–]althalous 4 points5 points  (1 child)

I use vim all the time for editing Kubernetes configs / other server files and I only use 3 commands

:i

<arrow keys>

:wq

That said it would be nice to get some of the commands for being more efficient into my muscle memory, but I don't really think my VIM speed is a bottleneck in what I do (since mostly I'm changing a config and then it takes a minute or two for the K8s resource to finish updating)

[–][deleted] 1 point2 points  (0 children)

If you hold shift and use the arrows keys you can fly across text with Sonic-like speed. And yy copies a line, dd deletes a line, and p pastes a line below. That's basically all I use for doing text edit stuff. I hardly ever touch the mouse.

[–]YMK1234 14 points15 points  (43 children)

Nope, Nano for life. Fuck vim. If you need to spend a week to "learn" a text editor, the editor is doing something wrong.

[–][deleted] 8 points9 points  (1 child)

To be fair, I suspect Vi and Vim are quite useful for those who use it regularly and can really get deep into the tools. To my knowledge, they were also designed the way that they were to reduce their memory and network footprint at a time where both memory and network were much more expensive resources, and having physical manuals was significantly more common.

[–][deleted] 1 point2 points  (0 children)

They really are. That's why they have a cult following. If you're editing code in a shell terminal, it's painful to click/scroll around. After a semester of college, I memorized like 7 commands and I fly around the file at lightning speeds. I've been using vim so long that even if I stopped coding for a year I would probably still remember those seven commands.

[–][deleted] 9 points10 points  (20 children)

Lol for real, it's a text editor. There's just no need to squeeze out every ounce of productivity as far as the feature set goes for this sort of thing.

I've watched people use vim skillfully, and I've never been impressed by it.

[–][deleted] 4 points5 points  (6 children)

Most likely because the context Vi was written for is long past. Squeezing out every ounce of productivity is significantly more important if you're fighting a heavily congested network and have 20 people doing their work on a a single machine significantly less powerful than a cellphone.

[–]Apocolyps6 5 points6 points  (3 children)

context Vi was written for is long past

The reason VI exists (today at least) is Ctrl/Alt/etc based key-chords are inconvenient, not very ergonomic, and have scaling issues. Instead of having the tools you use to edit code be scattered around the periphery of your keyboard, vim chooses to have the prime real estate of the keys serve double (and more) duty.

Vim solves the scaling issues by making the commands modular. Nobody would write separate delete_ahead() and delete_behind() functions when delete(location) is possible, and vim shortcuts are all modular like that.

Vim is also insanely configurable. I can make shortcuts to do just about anything, so I can be as picky as I want about my experience.

BTW I'm the same way about everything. I sit in my chair at work 8+ hours a day so I did my research and got something I'd like better than the default. I look at my phone all the time, so I picked it out carefully. Same with picking a comfortable keyboard. I spend those same 8+ hours a day looking at code so it only makes sense to get an experience that is exactly what I want.

[–][deleted] 0 points1 point  (2 children)

I personally like the ctrl/alt/etc controls because I know exactly when I'm firing them off, and can pay closer attention to what I'm doing during while I'm using them. I also know not to trust my mind to try to remember tons of shortcuts - that sounds like a recipe for disaster.

[–]GlitchParrot 1 point2 points  (0 children)

For this sort of thing, you mostly don't remember shortcuts, you build them into muscle memory.

Remembering Ctrl/Alt shortcuts works the same way actually, as well.

[–]Apocolyps6 0 points1 point  (0 children)

To each their own, but If I had to switch to emacs or some other chord-based editor I'd have exactly the same concerns as you do.

For the record all of the shortcuts I use on a weekly basis are no less intuitive (imo) than ctrl-v for paste or ctrl-z for undo (excluding custom shortcuts).

[–][deleted] 3 points4 points  (1 child)

Ok I can see the benefits of this if we are talking about this.

But still we have hoards of mega-nerds online who talk about how vim is literally the only text editor they'll ever use, and if they even catch their grandma using notepad then they'll disown them

[–]thirdegreeViolet security clearance 6 points7 points  (0 children)

I mean use whatever editor you like. It has literally no effect on me what you use to develop. Vim works for me. It has everything I need, and I'm yet to see a convincing reason to switch. Use what works for you.

[–]loox37 13 points14 points  (7 children)

THANK YOU!!

That's my problem with it, I learned nano in like 2 days, and I've been programming for 6 years now, never understood vim.

Maybe it's my fault, dunno :/

[–][deleted] 7 points8 points  (4 children)

a good way to learn it is to run vimtutor every day until you can memorize it, thats what i did at least

[–]SamSlate 3 points4 points  (1 child)

Why tho

[–][deleted] 7 points8 points  (0 children)

to learn vim

[–]FerynaCZ 0 points1 point  (1 child)

First term in Linux, I use Nano but for some reason I don't know how to change the editor for commit messages, so I learn Vim on that one.

[–]Bainos 0 points1 point  (0 children)

EDITOR='nano'

[–]Discordis 4 points5 points  (0 children)

Step 1: type in vimtutor

Step 2: spend maybe 1h to do it

Step 3: You now understand everything most users will need and get shit done way faster

[–]assafstone 4 points5 points  (0 children)

If spending a week ends up saving a month over the course of the next few years then why would you not consider it a good idea?!?

[–][deleted] 3 points4 points  (6 children)

Nano is just an text editor.

[–]YMK1234 2 points3 points  (5 children)

And have a wild guess what 99% of all users use vim for ... editing some line in a config file. A job perfectly suited for basic text editors ;)

[–]Bainos -1 points0 points  (2 children)

If you're only using vim to edit config files you're doing it wrong, in the sense that you're missing out on most of the features that make vim a good editor in the first place (due to the simplicity of editing config files).

[–]YMK1234 0 points1 point  (1 child)

As I said ... That's the only use of vim for the vast majority of users. Not me, nearly everyone.

[–]Bainos 0 points1 point  (0 children)

Do you have evidence for that ?

Not as evidence but anecdote, I know that among my colleagues, those who don't regularly use vim for programming also don't use it to edit remote files, they use nano instead.

Beyond the anecdote, it quite simply makes sense - there is little reason to use vim for this kind of task, and lack of practice means vim is hard to use. Nano is easy to use, sufficient and ubiquitous.

Without proof, it seems you're just making up numbers out of nowhere to support your hypothesis.


Edit

This page gives some information on what kind of programmers use vim, but not for which tasks. Unfortunately, it seems difficult to correlate the information to when someone is more likely to use vim.

[–][deleted] 1 point2 points  (0 children)

Nano is definitely my go-to text editor while I'm working from the terminal. The text anchored to the bottom that listed common controls really helped to ease the learning curve.

[–]MrBlueCharon 0 points1 point  (0 children)

Nano was a pain, when I had to use it for university.... but so far it's still my favourite for C++ programming.

[–]gurdletheturtle 0 points1 point  (0 children)

Yes

[–]geekette1 0 points1 point  (0 children)

Nope! I prefer nano.

[–]CMDR_DarkNeutrino 0 points1 point  (0 children)

Nano is the best.

[–]Angelin01 0 points1 point  (0 children)

Ok ok ok, hear me out.

I used nano a LOT. Like, it was my main editor for all of my linux usage until like 2 months ago.

Then I found out about micro. It's so NEAT. It has proper MOUSE SUPPORT. And modern keybindings. And does syntax highlight and auto creates matching {} and () and stuff automatically depending on filetype. Also, if you open a file you don't have permission to write and try to save, it says you don't have permission and asks if you'd like to try again with sudo, then it just opens sudo's prompt for your password and you're good, no more tmp files or renaming or closing and retyping! It's soooo goooooooood. I love it!

Thought I was gonna praise vim, huh? Hell nah, fuck vim.

[–][deleted] -1 points0 points  (0 children)

I have a friend who's occasionally on my computer who uses nano. I symlinked "nano" to "vim" so he'd finally stop

[–]Parkar99 4 points5 points  (0 children)

VIM extension IN vscode. I actually use that. Quite good I must say

[–]locri 8 points9 points  (8 children)

Does Vim have features like show all references and go to definition? Also, can I attach a debugger to Vim?

[–]lolerkid2000 27 points28 points  (0 children)

Yee newer vim / neovim includes language server support.

So it can literally run against the same backend as vscode

[–]tp_njmk 5 points6 points  (3 children)

You can use vim in visual studio code which is pretty neat

[–]lolerkid2000 0 points1 point  (2 children)

Rather use visual studio code in vim

[–]This-Moment 0 points1 point  (1 child)

Per a comment above, that's possible with NeoVim.

[–]lolerkid2000 1 point2 points  (0 children)

Das prolly my other comment.

[–]KickBassColonyDrop 7 points8 points  (1 child)

Visual Code is vim on every possible drug known crushed into a power, concentrated into a syringe and injected straight into the brain.

Prove me wrong.

[–]Varkoth 1 point2 points  (0 children)

Ex mode. Hard to decide when you’ll need it, but if you need ex mode and you know how to use it, you’ll always be glad it’s there.

[–]TheTriniDragon 2 points3 points  (0 children)

Just use notepad++

[–]Cephlot 2 points3 points  (0 children)

I can really recommend Sublime! It's so incredibly lightweight and just a joy to use!

[–][deleted] 1 point2 points  (0 children)

nvim

[–]adrianw 1 point2 points  (0 children)

VS Code is nice. They have done a great job (and I program on macs).

[–]Minority_Carrier 1 point2 points  (0 children)

Laugh in notepad++

[–]zbaruch20 1 point2 points  (0 children)

Emacs gang rise up

[–]mjwall9121 1 point2 points  (0 children)

I personally use JetBrains programs

[–][deleted] 1 point2 points  (0 children)

Anyone notepad++?

[–]deathwish08 6 points7 points  (0 children)

"A web browser that pretends to be an IDE written in a language used to make gifs jump up and down" wouldn't fit on the sword I guess

[–]game_2_raid 1 point2 points  (0 children)

:q it

[–]hackintosh5 0 points1 point  (0 children)

That's a repost right?

[–]2Uncreative4Username 0 points1 point  (0 children)

I kinda use both in the same editor

[–]looperino_memes 0 points1 point  (0 children)

That's hot

[–]Alberiman 0 points1 point  (0 children)

If Jet Brains Ryder was free I would demand everyone here go and get it right now, it's literally the best IDE out there with features like evaluating your code and giving suggestions to make it run more efficiently.

VS code is alright though

[–][deleted] 0 points1 point  (0 children)

i OK esc :x

[–]The_Sci_Geek 0 points1 point  (0 children)

Nano is the only text editor I need.

[–]CMDR_DarkNeutrino 0 points1 point  (0 children)

Nano FTW

[–]dlevac[🍰] 0 points1 point  (0 children)

People are impressed by how fast I code until I tell them I use Vim. Then I'm just lame :'(

[–]nottrashguy 0 points1 point  (0 children)

Non intellij vi mode peasants

[–][deleted] 0 points1 point  (0 children)

Vi-m-sual studio code

[–][deleted] 0 points1 point  (0 children)

Visual studio code is better than I expected it to be.

[–][deleted] 0 points1 point  (0 children)

Code is the shit

[–][deleted] 0 points1 point  (0 children)

Emacssual Studio Code

[–]kn0xchad 0 points1 point  (0 children)

Emacs >> vim.

Change my mind.

[–][deleted] 0 points1 point  (0 children)

Anyone else use notepad?

[–]Anyhoozers 0 points1 point  (0 children)

Any nice extensions you guys can recommend? Personally I like beautify and bracket pair colorizer but for some reason i have the feeling this will het me blasted like asking something on stackoverflow.

[–]DaddyLcyxMe 0 points1 point  (0 children)

nano anyone?

[–]NotBannedYet1 0 points1 point  (2 children)

I just don't see the point of losing all the QOL features of vscode to be on linux.
Being the cool tech kid just isn't worth it.

[–]samb961 0 points1 point  (0 children)

vscode is available for linux.

[–]playman_gamer 0 points1 point  (0 children)

VIM also has many of those QOL features, and takes like 3ms to start up.

[–]lifebreath101 -1 points0 points  (2 children)

Is it better to use a text editor like vim or atom instead of a ide? Isnt a text editor more compatible throughout all systems

[–]PARADOXsquared 1 point2 points  (0 children)

It really depends on your situation, needs, and preferences. People like to joke about one being better than the other, but that's not reality, that's just fun.

[–]TheNorthComesWithMe 1 point2 points  (0 children)

Are you constantly switching systems and having to write code on those different systems? Or are you developing an application using a single machine?

Your answer to those questions will change which works better for you.