16 ms·
Why are so many coders still using Vim and Emacs?
- bsg75 6y ago> It's less a war at this point than a grumbling shuffle of ingrained habit and stubborn resistance to change. That is just silly. I have VSCode and the JetBrains IDEs on my desktop, but Vim is _everywhere_ I work - even Windows servers if desired. If I'm working on a server, or another workstation, I can use a common editing environment. There is nothing stubborn about it, consistency is powerful.
- Amorymeltzer 6y agoThat's exactly the point; the very first section header is: >Vim: The high availability IDE
- ncmncm 6y agoAnswering the title question as written: Because IDEs are a trap. Skills wither. Whenever I find a spelling error in a variable or field name duplicated hundreds of times throughout a code base, I know an IDE has been there before me.
- bradlys 6y agoI find plenty of spelling errors with VIM users. It mostly comes down to who has spellcheck on and pays attention to it.
- the__alchemist 6y agoI use VIM to edit individual files not associated with a project. Code, notes etc. It makes me feel like a hacker from a Neal Stephenson novel, or cyperpunk film. It's fun. If I'm working on a coding project, especially in a statically-typed language, hacker text editors are hard to justify compared to a Jetbrains IDE: The latter have a powerful understanding of the language you're using, and use it to catch errors and suggest things as you type, refactor, jump to definitions etc. I don't think there's any plugin combination for VIM, emacs etc that's on Jetbrains' level of language integration.
- alpaca128 6y agoEverything aside from semantics-aware refactoring(I think) and some details in syntax highlighting can be achieved by Vim, Emacs and any modern editor thanks to LSP. For example I can code in TypeScript with real-time code checks, semantic completion suggestions and error messages similar to what's possible with IDEs. That doesn't mean I don't start up an IDE now and then to work on certain projects, but it's more the exception when necessary, as it always feels very cumbersome in comparison with weird behaviour everywhere.
- rmurri 6y agoIt's not merely nostalgia or availability. I continue to use emacs because it has the features that I want, where other software does not. Some things I want out of an editor: * Never having to touch the mouse in any way. * The ability to customize any feature for my current project or mindset on a whim. * No UI, as much as possible. Show me the content I'm editing and nothing else. * A good, extensible, set of keybindings with a bunch of features for editing of raw text I run my project in an IDE and will sometimes use a feature, but I generally don't develop there.
- pmiller2 6y agoThe great thing about both Emacs and Vim is that you can "customize any feature." All of the other things you're looking for just naturally flow out of that.
- jnxx 6y agoThe extensibility of Emacs is a major boon. Here an example: I never did real Emacs hacking, but I learned some Lisp stuff over the years, a bit of Clojure, Racket, and Common Lisp each. Now, I have a very experienced senior coworker which was asking for help - there was a feature which was just not working for his flow, he had tried to configure it but without success. Now, I looked into the Emacs library code and that was a pleasant experience, it is very transparent and readable and easy to modify, so that it was not difficult to adapt it to my coworkers's needs. The extensibility also means that, because there are many many people hacking on Emacs, that it stays very up-to-date. For example, Magit which is, I think, the best git front-end in existence. Or there is ranger mode, (ranger is a console file manger). In this sense, Emacs is not "antiquated", as the blog article insinuates, but it is much more recent and modern than any IDE. Take, as an example, git support: It took Visual Studio about fifteen years to add git support, in part obviously because the vendor company did not think supporting git was helpful to the companies objectives. In comparison to that, Emacs picked up version control options such as subversion or git almost immediately. As a result, Visual Studio users were left for fifteen years without support for the perhaps most important technical advance in programming. You may now argue, that the "modern" IDEs of course do have support for git, but there are surely other things which will be missing, just because it does not fit some companies narrative or marketing strategy. Another brewing revolution is that programming culture is drifting away from C++ and Java, in parts even from OOP, which is not any more the best option for every case, and companies which are invested in these "technologies" (uh, what a word), will again try to stop the clock, in order to squeeze a bit more money out of it.
- xupybd 6y agoI got into vim due to all the hype. It's not the best for me but knowing it is a huge win. If I'm in the terminal on a remote PC I have a powerful text editor ready to go.
- edna314 6y agoPlus, with extensions, it’s easily a huge vim as well.
- StreamBright 6y agoOne word: latency. As software gets more convoluted the UI latency increases.
- sirtaj 6y agoI have to second this. I've been using PyCharm for the last 6 months after 25 years as a primarily-Vim user (I've used various IDEs over the years before and during). The features of PyCharm are undoubtedly very useful, but actually typing code is like swimming through molasses in comparison.
- _e21c 6y agoHaha I use VSCode set up with Spacemacs keybindings...that way I get the best (and worst) of all 3 worlds (:
- emsy 6y agoSimilarly, I use vsvim. I like vim, it’s much more responsive, but setting up vscode to work with debuggers and external tools is so much more streamlined. I do desktop, web and embedded development and have never spent more than half an hour setting everything up. This isn’t true for vim.
- adamfeldman 6y agoSame here, this makes it easy! https://github.com/VSpaceCode/VSpaceCode/ https://github.com/VSpaceCode/VSpaceCode/
- _e21c 6y agoI love that extension so much.
- adamfeldman 6y agoThe critical piece for me is which-key: it displays available keybindings as-you-type (inspired by the Emacs package of the same name) – https://github.com/VSpaceCode/vscode-which-key https://github.com/VSpaceCode/vscode-which-key
- sdwolfz 6y agoWhy wouldn't we use them? - FOSS, That means we don't have to pay money to be allowed to code by somebody else - Available everywhere, even in terminals - Low resource usage, so I have more available for the other tools I need to use (browser, chat, vm, compiler, streaming...) - Fast, they are extremely fast at editing code, with low latency - Easy to extend, at least Emacs is, you write a function in a file and boom, done - Feature rich, at least for some languages like Ruby there is nothing commercial editors offer you that you don't already have, or 99% there - No mouse needed, so my wrist does not hurt anymore. - No spyware, seriously, why do I have to disable google anlytics in my code editor, and keep an eye out in case an update re-enables it And the "price" you have to pay to use them? Just learn their keybindings, literally what you have to do in any code editor as each has their own, just that these two have more, and they're quite different compared to what you might already know. Note, I've tried out many editors over the years: Visual Studio, Notepad++, Eclipse, Netbeans, Intellij and it's language specific clones like WebStorm and RubyMine, Sublime, Atom, VSCode, pure Vim, pure Emacs, and now finally Spacemacs. Only the last one managed to fit the bill for me perfectly, being feature rich, fast, and it stood out of my way when I needed to focus. If they dissapeared over night, it might surprise you, but I would go back to Netbeans, for the same reasons, as far as I'm concerned, giving me just enough functionality and then staying out of my way when I need to do my work is what I value the most in them. That being said, I acknowledge both Vim and Emacs have their quirks and baggage, but so do the others, and I preffer to deal with learning Vim movements compared to staring blankly at a screen until I remember where to click through menues. My advice, use all of them, but take it seriously, dedicate x > 2 months to each one you would like to try and use them intensively, learn as much about their capabilities as possible. At the end choose what works best for you. And don't just use something because somebody else tells you (or makes fun of you because you're not on the latest trend). You are you, not them. It might not be what I would choose but why do you, or I, care?
- iratewizard 6y ago> Why wouldn't we use them? On an individual level: learning curve, company policy, integrations to dev ops flavor-of-the-week and the initial difficulty to extend the editor. With that said, learning Vim is a good way to get exposure to a very different type of user experience in software. Plus, you may see an increase in productivity. I don't see that increase, but I at least gave it a fair shake 10 years ago.
- ngokevin 6y agoLets you code like the coders you see in movies and TV. It's like the difference between touch-typing versus hunt-and-peck. For when you have to make a lot of mindless code movements.
- enriquto 6y agoThe word "still" turns a honest question into a loaded, ugly question. There's thousands of people who are starting to use vim today. You can ask, why do they? That is a relevant question. The question of why old users of these editors keep using them is mostly uninteresting.
- antipaul 6y agoNot to mention the condescension in calling them, right off the bat, “a grumbling shuffle of ingrained habit and stubborn resistance to change”. Habit and sticking with something that works are, like, good things most of the time!
- tedmiston 6y agoThis presumption really bothered me too. The tone of the authors is very anti-vim without ever stopping to mention that vim can be dressed up with plugins, command line tools, unix philosophy, etc. It appears that neither of the authors are developers... the quality of the article would have been a lot better if they hadn't stereotyped vim users so much / admitted there are legitimate reasons to prefer a text-based interface over a GUI for en editor in 2020. I'm surprised that a company like Stack Overflow would publish such a narrow-minded article on their company blog... surely they have developers internally using vim they could have talked to...
- 0xdeadb00f 6y agoI skimmed through the article and there's quite a bit more of this: > This has led users to literally turn Atom into Vim, unable to let go of the past, unwilling to fully embrace the future of code editing. > unable to let go of the past, unwilling to fully embrace the future of code editing. W-what?
- tolbish 6y agoOutrage sells.
- jnxx 6y agoAs the parent says, this sounds like a loaded question. In fact, it sounds just like som marketing departmetn which wants to promote some IDE is trying to gather reasons and possibly features which need to be added to some "competitor" IDE, in order to gather more market share. I write that because to me, the interest to actual answer to the question - why people use these open-source editores - seems somewhat thin. But, as somebody who uses Emacs, why not use the attention for some Emacs marketing. Before going on, I use Emacs mostly since about 22 years. I am also occasionally using vi (mostly for system administration) or mg (which is a very light-weight editor with basic emacs keybindings). I've also used a host of other tools, for example in some work environments there was really no other alternative than to use Visual Studio, or Eclipse, and in some the most practical thing to use was notepad++. So, why Emacs? At first, and something that might be interesting to beginners, basic editing in Emacs, such as to produce similar results to using notepad++, is actually quick to learn. It has a nice on-line tutorial and very good interactive documentation. The fundamental philosophy it has is that basic text editing is modeless, that is, one uses a (possibly large) number of key combinations to modify text, and the basic combinations are universal. And this is already the main difference to vi/vim, where the meaning of basic key commands always depends on the mode. Emacs does have modes, however, for advanced commands which modify different /kinds/ of text. Emacs supports a large number of programming languages out-of-the-box, which includes anything you need to write for documentation. This saves a lot of time when setting up projects. It is also very quick to set up additional packages and modes. Emacs and vi/vim both are based on the notion that code is text: They are optimized for text editing, and in my experience this is absolutely the right thing to do. I had the dubious pleasure to use several systems which use code as kind of point of entry to some kind of database or graphical system or whatever, and these are, universally, just a pain in the ass. Compared to IDEs, Emacs loads and starts very, very fast. In cases where one want it even faster and don't need that many features, one can use emacsclient, or the mg editor, or, of course, vi. It is also possible to use Emacs in a text terminal, which is invaluable for remote work on servers or embedded systems, and it also has good support for the shell's job control: Running in terminal mode (starting with the "-nw" option), Ctrl-Z will bring you to the shell, and "fg" will bring you back to your Emacs session.
- gidam 6y agobecause Vim is beautiful.
- tathougies 6y agoWhat I want from an editor: 1. no code completion -- rarely works well. To get it to work well, it requires set up, and when I start a project, I don't want to waste time setting anything up. Also, doesn't work for interesting things, like code generation. I realize most programmers rarely do anything like that, but I do. 2. Customizability -- emacs is super-customizable. Lisp is easy to understand and you can basically do anything. 3. No mouse -- I'm faster just using keyboard shortcuts 4. Runs in terminal or graphical -- When I ssh into a machine, I want to be able to use Emacs through the terminal 5. Orthogonal user-interface -- In Emacs, everything is a buffer. I can use the same interface to navigate through Emacs 'configuration' as I can through my code. I can use the same interface to navigate through the Emacs terminal emulator as my code as well. This is amazing. Contrast this to 'newer' editors like Sublime or Eclipse, where the configuration dialog, git interface, etc, are all custom UIs. To understand why this makes a difference compare and contrast the experience of using a Web-based App via a browser to the feeling of using a Native App. The native app may 'feel' nicer when you look at it, but nothing beats the consistency of the browser interface (back button, copy/paste integration, links, etc.). There's a reason HTML based interfaces are so popular 6. Universal support -- emacs runs on basically everything. So does VIM (Probably more than emacs) 7. Support for large numbers of libraries, languages, etc -- I've rarely found any new language, framework, etc, which doesn't have support in Emacs. With some changes to my init.el, the package is installed (thanks to use-package), and I'm done. 8. Easy dot files -- I have several computers. To set up emacs on a new computer, I just copy my .elisp directory. In other words, the advantages of Emacs and VIM over other editors are: 1. Text-based interfaces 2. Universal support 3. Customizability 4. Adherence to the UNIX philosophy (everything represented as text)
- 0-_-0 6y agoConsidering the popularity of Vim and Emacs I sometimes wonder if I'm missing out by not using them over my preferred editor, but whenever people describe their reasons for using them in lists like this, I see nothing that I would consider an advantage over my current setup, and then just forget about the whole thing.
- npsimons 6y ago
- lainga 6y agoPersonally, it's because I can't set up X11 forwarding on every machine I SSH into
- KMnO4 6y agoDo you need to? Both VSCode and IntelliJ have remote coding capabilities.
- harshitaneja 6y agoVSCode remote works great. But IntelliJ doesn't have remote coding capability as far as I could search when needed it. You can use sshfs but it is not really a feature of IntelliJ and doesn't work well enough to be comfortable in, atleast in my experience.
- 0-_-0 6y agoVSCode Remote is a nice solution to this problem.
- garmaine 6y agossh -X doesn't work?
- brlewis 6y ago> That said, if you’re new to programming, a modern IDE could be helpful. With code completion, Git control, and even automatic deployment systems, modern IDEs are a Swiss Army Knife of features. Just in case anyone reading here is as colossally ignorant as the writer, let me state for the record that emacs has those features. I don't use vim but I'm pretty sure it has them too. An accurate list of how newer IDEs benefit newbies follows: 1. Familiar key bindings
- lawn 6y agoFor git in Vim I use the fugitive plugin[1] and I find it's really good. If you find it lacking in any way you can always combine it freely with other plugins. For instance gitgutter[2] that shows diffs in the sign column, giving you an easy view of which lines have been added, removed or changed. There are solutions for the others too. Neovim has for example support for the Language Server Protocol[3] that gives you code completion, jump to definition and the like. The only thing with Vim/Emacs at this point is that you have to do some configuration and find some plugins to get the IDE features you want. For me personally, as I use Vim for everything, it's not that big of a deal. [1]: https://github.com/tpope/vim-fugitive https://github.com/tpope/vim-fugitive [2]: https://github.com/airblade/vim-gitgutter https://github.com/airblade/vim-gitgutter [3]: https://nathansmith.io/posts/neovim-lsp/ https://nathansmith.io/posts/neovim-lsp/
- dheera 6y agoBiggest problem with IDEs is they are a big in-your-face hurricane of features that is often too much. As a newbie you want to create a single-line Hello World program but the goddamn IDE wants you to create a workspace, and then within that workspace create a project, and within that project create a bunch of infests and manifests and resources and XML files, and pretty soon you're lost.
- garmaine 6y agoTo be fair, emacs and vim suffer from other equally baffling problems for newbies. Otherwise this wouldn't be such an upvoted question on SO: https://stackoverflow.com/questions/11828270/how-do-i-exit-the-vim-editor https://stackoverflow.com/questions/11828270/how-do-i-exit-t...
- naveen99 6y agoI make all my programmers learn both vim and emacs (with evil mode). They complain but it’s part of their on boarding.
- Someone1234 6y agoSounds more like hazing than good leadership.
- secretasiandan 6y agoA non trivial amount of on boarding is because "this is the most efficient information to ensure these learning agents have as they navigate their environment seeking rewards"
- naveen99 6y agoI don’t believe in hazing. I am paying them to learn something that I believe will make them more productive for my business in the long run and likely help them in their career when they leave as well. They can still use their favorite other editor if they want, but they should be able to teach vim and emacs to the new programmers I hire after them. Also if they can’t learn emacs, I have less faith they can learn other useful things also when needed.
- kgwxd 6y agoIs that a joke?
- TomVDB 6y agoIn the early nineties, when we were coding on Sun Sparcstations, the only real options were vi and emacs. I'd tell new college grads to use vi. After a few weeks I'd tell them about the existence of emacs. Some would switch, most never did. Nobody was forced to use an editor against their will, but before ubiquitous Linux availability in college, it's not as if they had any practical Unix experience.
- Upvoter33 6y agoBecause emacs is awesome. Every key press runs a program(!). Easily customized by writing code. Easy to pop up in a terminal and pop back out quickly. Can't imagine using something else, unless it's a modernized emacs.
- skummetmaelk 6y agoBecause you only need to know one tool for every type of work you do. Except for inherently graphical tasks like drawing and diagramming. When you use Emacs or Vim and live on the command line every project has the same workflow. You don't need to install 10 different IDEs and learn 10 different workflows for 10 different projects. You don't need to go through 117 layers of menus to apply compilation options because your IDE invokes the compiler for you. You don't need to use a mouse. No googling "how to X in PyCharm" 5 minutes after googling "How to X in Eclipse".
- garmaine 6y ago> Except for inherently graphical tasks like drawing and diagramming Let me introduce you to graphviz. https://graphviz.org https://graphviz.org
- TeMPOraL 6y agoOr, for the lazy, PlantUML. https://plantuml.com/ https://plantuml.com/ It's backed by Graphviz, but optimized for the kinds of diagrams software people typically do. Works very nicely with org mode too!
- npsimons 6y ago> When you use Emacs or Vim and live on the command line every project has the same workflow. You don't need to install 10 different IDEs and learn 10 different workflows for 10 different projects. When I was demonstrating emacs to some co-workers last week, I opened up code in three different languages and pointed out how the comments were all the exact same color. It's little things like that. And having things like hl-todo-next/previous and flycheck-next/previous-error bound to the same keys in multiple programming languages, or binding F4/F5 to compile/recompile, and that works for any command I want to run, then I can parse through error and warning messages with next/previous-error, or cruise through blocks of code with C-M-a/C-M-e. And all of this works in C/C++, Python, Lisp, Perl, etc.
- snarfy 6y agoSometimes I need to edit a 10GB text file. Good luck with anything other than vim.
- sterkekoffie 6y agosed, perl? I don't know why you would ever need to load a 10 gig file to memory.
- snarfy 6y agoVim doesn't load it all into memory. Sed and perl means you are writing a program to deal with it. I already have a program that can deal with it.
- pirocks 6y agoSublime can do that. I bet intellij could pull it off if you had sufficient ram which you probably do if your editing 10 gb files
- postalrat 6y agoLast time I had to edit a huge file vim failed and vscode succeeded. Is there some special mode you need to be in while using vim on huge files?
- snarfy 6y agodisable syntax highlighting.
- nickjj 6y agoI use terminal Vim mainly because of tmux and all of the benefits that come along with using it. Being able to split projects up by sessions, persisting everything and seamlessly jumping between varying layouts of terminals and code editing is something I haven't been able to reproduce with any other editor (even if it has a built in terminal).
- npsimons 6y agoFor me, I've been using Emacs for 20 years. It comes down to two things: 1. I never have to move my hands from home row. Pretty much anything I need to do, I can do in Emacs (including file browsing, PDF viewing, web browsing, music playing, git, shell stuff, etc), and faster, because I can rebind keys at will. Emacs is just too darn flexible. 2. Anything good from other editors will eventually make it into emacs. The first thing that comes to my mind is snippets which I think came from TextMate. Again, emacs is just too darn adaptable and flexible. That said, I don't recommend non-programmers or even new programmers learn emacs. It's a steep learning curve, it's just I've already climbed it, and now I delve even deeper to learn more about it whenever I can. I just don't have the technical investment in any other editor, and it's highly unlikely that any other editor, IDE, etc will ever have enough advantage to switch. Edit: Ooh, I just remembered this one: I'm not a big user of TRAMP, even though it's awesome, but it's even more awesome than I realized. A couple of weeks back, I was test-compiling and running our codebase on a new version of the OS, using a remote machine via ssh (forgot the -Y). I quickly found myself missing the M-g n and M-g p for moving through compile warnings and errors, so I loaded a remote edit session on my local emacs and without even thinking just ran a compile. To my wonder, it just Did What I Meant, and ran the compile on the remote machine, no special setup required! I mean, it was utterly seamless. It's this sort of thing that keeps me learning emacs and just marveling at how awesome it is!
- TeMPOraL 6y ago> To my wonder, it just Did What I Meant, and ran the compile on the remote machine, no special setup required! I mean, it was utterly seamless. It's this sort of thing that keeps me learning emacs and just marveling at how awesome it is! This will blow your mind then (as it did mine, when I discovered it): it also works like this for GDB sessions.
- jnxx 6y ago> That said, I don't recommend non-programmers or even new programmers learn emacs. Emacs is definitely more useful to people who use it somewhat frequently, as one has to memorize some key strokes. But, there is a good interactive tutorial, and I don't think that learning Emacs to the equivalent of a beginner's level of competence takes very long. A few afternoons perhaps, and one can go extending from that. And if you forget things, it is because you do not need them that often. This is also a kind of economy in there. Maybe other things are more important.
- abbadadda 6y agoI stopped reading immediately after this: The endless war between Vim and Emacs users has continued ad nauseam over the years. "It's less a war at this point than a grumbling shuffle of ingrained habit and stubborn resistance to change."
- garmaine 6y agoHonestly emacs and vim haven't been at war for ages. We joined in an unofficial peace treaty when the common enemy of graphical IDEs appeared.
- dilippkumar 6y agoI use vim because it’s the only real option for my workflow. I work on an extremely large codebase that easily eats up several hundred GB of disk space. This code lives on a workstation under my desk. I do my coding on a laptop. I want only one feature: Low latency for typing, find/replace, search over a wireless connection from my laptop to my workstation, possibly while I’m traveling. Nothing beats ssh’ing into my workstation and launching vim. (Emacs will also work - I just prefer vim because I’m used to it) I would love to use an IDE and the powerful features that come with it. But I wouldn’t trade off latency for those features. Additionally, there are a ton of people who use the same workflow as me - ssh + vim. Any impact from changes to a network security policy will quickly be fixed because it impacts soo many of us.
- dividuum 6y agoGenuinely curious: How do you efficiently navigate such an extremely large code base using vim? ctags? Any plugin recommendation?
- dilippkumar 6y agoI use ripgrep[0] to look for things. It’s incredibly fast - I have found that it’s usually faster than what an IDE takes on a much smaller project. Once ripgrep has found something, jumping to that file is super easy (and fast!) I use ctags on smaller subdirectories when I’m not familiar with the codebase and I need to jump around a lot to find definitions within a small number of files. [0] https://manpages.debian.org/testing/ripgrep/rg.1.en.html https://manpages.debian.org/testing/ripgrep/rg.1.en.html
- TeMPOraL 6y agoSimilarly here. The codebases I work on are smaller, but then, I sometimes work on a go from a sidearm 2-in-1 computer. It's lovely to be able to just SSH (well, mosh) into my beefy desktop and run Emacs in a terminal, and have it both look and work identically to the GUI version I use at home.
- x86_64Ubuntu 6y agoWhat is the language of your codebase? And which industry are you in so I can avoid it. My goodness, several hundred GB of code sounds like pure misery.
- deleted 6y ago[deleted]
- p0d 6y agoI was recently given some money and splashed out £150 on an i5-6th gen desktop which lives in my roofspace. The i5 replaced my trusty dual-core. A long time ago I centralised my projects to the headless roofspace box and now run up Sublime remotely for each project (using lxc). It works great and I can code from any computer on my network. This seems easier to me than running vim and spending a month getting on top of my vimrc.
- emilecantin 6y agoI'm only slightly older than Vim itself (but much younger than vi), but I've used it for virtually my whole career. The one thing the author's missing is the real reason every Vim user uses it: Vim is not an editor. It's a language. A text-editing language. When I'm editing, I'm thinking things like: - change these 2 words: "c2w" - remove everything in these parentheses: "di)" - delete this line: "dd" - where is this declared: "gd" (this is a custom CoC.vim mapping) Any editor implementing that language would probably see very good adoption in Vim user circles (e.g nvim).
- Someone1234 6y ago> Why are so many coders It is unclear how many coders do in fact. There's a very LOUD subset of programmers that absolutely do, because they'll tell you they do every chance they get. But if you only listened to the comment section on sites like this you'd think that nobody uses Visual Studio, IntelliJ, Eclipse, etc rather than them being more stereotypical for professional shops than Vim/Emacs. If you look at Stackoverflow's survey[0] it gives you some idea, but because it is a [Select All that Apply] question it can inflate IDEs that are good for occasional/general purpose usage (e.g. Vim, Emacs, Notepad++, VS Code, etc). They should ask people what IDE they use MOST. It is the same thing as Windows, you come to any programming message board you'd think 99% of programmers use Linux professionally, but in the corporate world (which is the majority of programmers) Windows rules the roost. [0] https://insights.stackoverflow.com/survey/2019#technology-_-most-popular-development-environments https://insights.stackoverflow.com/survey/2019#technology-_-...
- emteycz 6y agoVS Code is the best IDE for TypeScript, which is rapidly growing. I think that's the more likely reason than accident.
- KKPMW 6y ago> Modern IDEs are magic. Why are so many coders still using Vim and Emacs? The title answers the question to some extent - I prefer Vim over IDEs because I am allergic to "auto-magic". Also, unlike most IDEs, Vim will still be there after 5 years, 10 years, or 15 years.
- alpaca128 6y agoI feel the same way. The beauty of Vim is that it's not only flexible but also respects the user; unlike most IDEs it doesn't blindly make assumptions, auto-format code while it's being written, auto-close brackets and tags, it has no "plugin XY has a new update!" popups. It just reacts to input and nothing more. Vim can have most of those things if needed, but after years of usage my tolerance for "smart" features declines constantly. Which in turn made me gravitate towards using more CLI utilities, as those follow the same philosophy and go hand in hand with Vim. The "no automation but efficient shortcuts" approach just feels more reliable and predictable.
- globuous 6y agoBesides what's everyone has said so far, what I love the most about my emacs is that the only thing I have on my screen 95% of the time is code. No side file tree, though helm find files has a sweet UI I use hundreds of times a day. Magit is there in three key strokes and out when I'm done giting. My window navigation is sweet. Sometimes I have zero splits, sometimes I have a dozen, and it's easy to navigate between each split, resize them, undo split modifications etc. My flycheck shows me errors in a great UI when I need it and doesn't show when I don't. Same with helm-imenu that that shows me classes, functions, methods and attributes when I need them and only then. I'm sure you can do that with all the editors, but when I see peeps using VScode or myself using Xcode, everytime close to 50% of the workspace is filled by stuff I only need temporarily. Emacs let's me see code most of the time, yet has all the classical IDE features one could dream of. <3
- thibran 6y agoI'm using Emacs since 10+ but the one thing that never worked for me is window switching with more than two windows. Do you use C-x o to switch between multiple windows or what do you use? That's what I currently use to switch quickly: (use-package ace-window :defer t :init (key-chord-define-global "ii" #'ace-window) :config (setf aw-scope 'frame))
- antipaul 6y agoNot OP, but I’ve had same difficulty switching among windows. I remap “other window” shortcut to something more convenient. See https://emacs.stackexchange.com/a/3471 https://emacs.stackexchange.com/a/3471
- TeMPOraL 6y agoTry this: (use-package window-numbering :ensure t :config (window-numbering-mode)) This will rebind M-1 through M-0 to become window-switching keys, and also display each window's number in the modeline. I've been using this for years now, and haven't found anything else that beats the speed of pressing M-1 through M-5 with my left hand (I rarely have more than 5 windows per frame).
- zwieback 6y agoStill using Vim from time to time but this discussion was more relevant when powerful IDEs were not free.
- telotortium 6y agoHa, I actually all three of Vim, Emacs, and a more IDE-like editor: - Vim: this is my home editor - in particular, I use Vim keybindings in the other editors. Mostly I use it for editing config files and other scripts, and occasionally to perform more complex editing tasks in files I'd usually use other editors for. I have a good configuration for editing these sorts of files. I have tab completion, project search, and the like set up here, but not more complex language-specific editing functionality for the most part. - Emacs: for Org mode and Magit primarily. I'll edit other files here if it's convenient (especially if I'm editing a file linked to by my Org agenda) - I use Doom Emacs, so there are some sane defaults installed for other languages - but I probably won't adopt Emacs as my primary editor, since it's prone to lag and lock up too often. Maybe that's due to Org, and I could fix it, but since Emacs' support for multithreading and async isn't the most robust, it seems like a better of use of my time to leave Emacs dedicated to Org mode. - IDE: At Google, there is a web IDE that is integrated with syntax checking, build system, source control, that I use most of the time to edit code that goes into Google's main repository. I've briefly tried to set up such integration with Vim and Emacs - they exist, but it hasn't been worth my time when a frankly pretty good solution is actively maintained internally. Perhaps I would use VSCode if I were working elsewhere, assuming its plugins are more robust than Vim/Emacs language integration plugins. The Language Server Protocol has been a boon to all the editors I use.
- vector_spaces 6y agoJust wanted to mention that Vim and Emacs both support the language server protocol -- I can't speak to vim support since I'm primarily an emacs user, but it's been great for me.
- telotortium 6y agoI know - if I decide to code outside of work in a non-Emacs Lisp project, I'll give them a try.
- hbogert 6y agoAhh magit, the reason I keep getting back to Emacs.
- AdmiralAsshat 6y agoI feel like you could do a single-image rebuttal to this article, consisting of a timeline of various popular code editors/IDEs that have come and gone since 1976, and how many of them are still around. I mean, fuck, I've only been in this industry since 2011, and that's still long enough for me to recall the "rise" of half a dozen code editors (SublimeText! Atom! Intellij! VisualStudioCode!). I imagine most people don't like re-learning their entire workflow every couple of years, and just want to get back to coding.
- jjav 6y agoIndeed. I started using emacs in ~91 and put an effort to really learn it in '93 and been reaping the benefits of it ever since.
- deleted 6y ago[deleted]
- erlkonig 6y agoAn IDE has some integration benefits, sure, for a relatively tiny number of languages, typically, compared to Emacs and Vim, at the cost of amazing raw editing capability no IDE comes close to. Samples: copy/paste rectangles of text, interactive regular expression replace, dynamic abbreviation expansion, edit remote files via SSH, exchange words around punctuation, treat words, lines, sentences, expressions, functions as movable units, works on a bare terminal, works via X, spawns windows on other displays while sharing the same buffers, saves multiple cursor positions, supports macros that can cross modes (open/close files in the directory browser and mod them in a single macro), and so on ad nauseam. Anyone only aware of just using arrows keys in their IDE to move around and DEL + text insert to edit is blind to an entire universe of elevated editing possibilities in true power editors like Vim and Emacs. Emacs is my IDE. I use Vim too. Both in their native keybindings. And when I taught, I had all my Unix students learn both of them the same way. I have never seen another editor that comes even close to them for power of raw text manipulation. Got one?
- nicoburns 6y ago> copy/paste rectangles of text, interactive regular expression replace, dynamic abbreviation expansion, edit remote files via SSH, exchange words, ..., saves multiple cursor positions Most of the popular text GUI editors (VS Code, Sublime Text, etc) can do these things. > treat words, lines, sentences, expressions, functions as movable units, works on a bare terminal, works via X, spawns windows on other displays while sharing the same buffers, supports macros that can cross modes (open/close files in the directory browser and mod them in a single macro), These ones not so much, but then you also give up quite a bit by being in a terminal, having to deal with modes, etc.
- jnxx 6y ago> Most of the popular text GUI editors (VS Code, Sublime Text, etc) can do these things. Yeah but Emacs could to that twenty years ago. Picking up git support in Microsoft tools took more than fifteen years, I think. The same will happen with upcoming useful new features and techniques, just because they do not fit some companies marketing and product strategy. Does one really wants to be that much behind with useful features and tools?
- deleted 6y ago[deleted]
- cmrdporcupine 6y agoI'm stuck 50km from my workstation with my code on it, which company policy dictates cannot really leave the corporate network, and even if it could it takes a specialist workstation machine with 40+ cores 20-30 minutes to compile it, but 3-4 hours on the HP Z2 mini I have at home. So I have to work remotely, and the latency of remote desktop is abhorrent, so a graphical IDE is out. Also CLion, which I normally love, simply can't index the massive codebase. VSCode can, but VSCode frankly doesn't compare. So even before working remotely I started using emacs with lsp-mode. Which is fine because I have been a casual emacs user for 30 years now so my fingers work efficiently in it, and the LSP stuff is fast and competent. It indexes everything I need and has pretty good symbol navigation and even some simple refactorings. (I'm a paying CLion customer, but JetBrains can't seem to get their act together with large code bases. Many years on and the Chromium tree simply can't index in it, let alone the tree I work on which is Chromium + an extensive set of internal trees)
- akvadrako 6y agoIntelliJ is probably the best IDE out there but it doesn't even support C/C++, even with plugins. That's all the reason you need. It's why I switched back to vim.
- deleted 6y ago[deleted]
- hprotagonist 6y agobecause 45 years worth of polishing makes a nice thing, my hands have spoken that thing since i was 15, so bite me? more to the point: why does anyone care, as long as my stuff’s done in time and doesn’t shit all over the coding style or formatting guides?
- idolaspecus 6y agoVim and Emacs minimize magic, modern monolithic IDEs maximize magic. I think there is fundamentally no good reason why an IDE should be provided as one gigantic tool, because that's not how software works. You could say Vim and Emacs aren't IDEs, they're platforms for composing IDEs. Software engineers swear by these platforms because their very structure is exceptionally well-aligned with the sort of high-quality software they want to build.
- idolaspecus 6y agoAn old coworker (Vim user) of mine had a good response to another coworker who asked him "why don't you use an IDE?": "I do, it's called Linux."
- eatthoselemons 6y agoThere is common name for that, "unix as an ide" I often point people to this blog when asked why I don't use an ide https://sanctum.geek.nz/arabesque/unix-as-ide-introduction/ https://sanctum.geek.nz/arabesque/unix-as-ide-introduction/
- thelazydogsback 6y agoWeird title, as the default modes of Vi and Emacs are diametrically opposed and opinions there tend to run strong.
- rich_sasha 6y agoI’m addicted to Emacs. I think a key part for me is that while for an individual task I can often find a better IDE, there is no one IDE that covers anywhere near the range of things I use Emacs for. It’s the Swiss Army Tool. Not perfect for any one job, but good for almost anything.
- devnull255 6y agovi/vim is my editor of choice because the shell (ksh or bash) is my primary IDE. The last 20 years or so has required me to develop mostly scripting (ksh, sh or bash) that is executed by some sort of automation. The shell is where I spend most of my time executing commands that need to be scripted, inspecting various system resources and troubleshooting. The vim editor is readily available to use in places where external tools outside of a terminal emulator may not be readily available or the startup time required to configure those tools may be better spent on configuration tweaks in the shell. I've also found especially when working with build automation in Jenkins or deployment automation with uDeploy, that a GUI-based client IDE somewhat obscures things I need to see in the environment I am building in. IDEs like Eclipse and IntelliJ IDEA, while providing plugins for Gradle or Maven, may have configurations that are not compatible or differ in some fundamental way from those of the server build environment.
- thegreatpeter 6y agoI recently learned vim (a couple years ago) and will never look back. Going back to VS Code every once in awhile to make sure I’m not missing out and I don’t, lol Onivim is VSCode and vim built in ReasonML. That’s the next best excited thing for me
- grammarnazzzi 6y agoWhy do so many carpenters still use screwdrivers when they could be using a drill?
- grammarnazzzi 6y agoWhy do companies retain experienced developers instead of hiring ignorant and entitled millennials? Don't employers understand that experience is a liability?
- webgoat 6y agoI use emacs because the elisp system makes it easy to add custom workflows or functionality. I'm not sure if the same is true for vscode, but from my past experiences with vscode users they tend to do very little modification of any kind and just accept what's given to them. The IDE is the most used tool for a developer, so being unable or uninterested in personalizing that tool can be a heavy loss in productivity over your time as a developer.
- dusted 6y agoI use vim, with only the dumb auto-complete, because it forces me to take it easy, to get a more complete mental model of the area of the code I'm working on, and, if it becomes too tangled to keep in my head, the tool won't save me and I'm forced to rethink that part of the program. It forces me to concentrate a bit more, to focus and achieve a state of mind that I enjoy a lot, where I feel close to the code, at peace, focused. Back when I started programming, I was using windows notepad, then UltraEdit32, Ms Visual Studio, then on Linux Code::Blocks and Eclipse, and it's so awesome how they can look into the structures and tell me the properties on the objects, but on the other side, it removes the friction of writing ugly structures with too many badly named properties. So I moved to VIM relatively late. I dunno, it just gives me a different level of peace and understanding.. It's also practical because I can work over ssh and with tmux, and vim does have nice text-editing capabilities, though I'm often not using it to it's full potential. The article mentions how our fingers are the bottleneck in turning though into code, maybe those guys are brilliant, or maybe they write too much code, I like to spend time on each and every line, not just pound away like a crazed monkey like I did in my teenage years, I like to consider each line I write, and examine it together with the lines around it and the functions around it and the objects around it, does it fit in, does it feel right, does it perform well.. This takes a long time for me. Maybe I've turned into a bad programmer.. I used to easily monkey 5-600 lines of code out per day, but now I write maybe between 10 and 200, but I find them beautiful and satisfying, almost every one of them, and I feel I've weighted my options for everything I make, and that is very satisfying to me, it gives meaning to my day and makes me want to continue doing what I do.
- bnix 6y ago>> Maybe I've turned into a bad programmer I agree with you on everything except this ^^ :-P I too enjoy that sort of mental model you are forced to get into, especially in terms of translating that simplicity and focus into a codebase. Not just being a “hero” and cramming out code, then having velocity and feature progression suffer years later for the known (and unknown) tech debt generated from not thinking things through with patience and consideration.
- bassman9000 6y agostubborn resistance to change Ironic, given the recent trend of making everything out of bloated browsers, like every new IDE out there.
- actf 6y agoI personally love vim, and have found that setting up vim keybindings for my IDE seems like the best of all worlds. I do appreciate the consistency and speed of plain vim, however I can't fathom trading that for code completion, which in my experience is the biggest missing feature from vim. Even with plugins like YouCompleteMe (which is awesome) the completion quality isn't even close to what you get in a real IDE. I'm honestly curious how people code productively in a professional environment without code completion?
- Seb-C 6y agoI had the same problem until I tried coc.vim. It is really good since it is based on the VSCode's engine.
- 0_gravitas 6y agoI'll add to the cacophony and say that my journey has been IntelliJ (when I was in college learning Java) -> VSCode -> Spacemacs (w/evil mode) -> (Neo)Vim Over time I've been getting more and more drawn to the trinity of lightweight, control, and reduction of noise/overhead. I don't like having things that I didn't specifically require/install/configure. I really appreciate the philosophy of starting at stock vim, and then add configuration/tools when you realize you need/want them. [ And of course, vim keybindings can't be beat ;) ]
- vaccinator 6y agowhy are so many people worried about what other people use?
- Topgamer7 6y agoVim is good for wrist pain, clearly the author doesn't struggle with that.
- paledot 6y agoWow, what a load of tripe. The article fails to articulate the reasons why one might use Vim or why one might prefer a visual IDE. You're welcome to disagree with my choices, but an attempt to engage with them or even explain your reasons for choosing differently is table stakes for this sort of piece.
- hallgrim 6y agoKnowing a bit of emacs has helped me a lot when fixing code on servers via shell. I also think that while learning, writing code in an even more primitive editor (editor.exe) could prove beneficial. But apart from all that, being a self-taught programmer, the JetBrains IDEs (pycharm, rider, IntelliJ) have significantly improved my skills and saved me tons of time by highlighting potentially problematic lines (“you are using that iterator twice, be careful!”). It has made me research topics I might have taken hours to find out for myself. It encourages frequent and easy renaming of variables and functions across the whole project, which has allowed me to be more flexible and maintain sensible names for things even after changes. It encourages consistent naming, too. It makes navigating code throughout the whole project a breeze. And basically any of the gazillion of features can be assigned a keyboard shortcut. Plus, if I’m spending 8h every day staring at code, I rather look at a UI nicer than the command line tbh., but that is a matter of taste I guess. Also, something is to be said for being “able” to use a shortcut, and “having to”.
- jnxx 6y ago> It encourages frequent and easy renaming of variables and functions across the whole project, which has allowed me to be more flexible and maintain sensible names for things even after changes. This one is really a good thing, I agree. Which seems to require a language server integration package for Emacs - AFAIK there exist two of them by now.
- m463 6y ago"They must like manual screwdrivers, we've had electric drill-drivers for years!" What he doesn't seem to realize is that Emacs is more like a tool chest than a tool. As soon as you go from the generic "mechanic's tool set" or "homeowner's tool set" to a toolchest you've created with all your screwdrivers in one drawer in plain sight, and your wrenches in another... You know the immediate productivity boost of just going and getting what you need directly. Most real mechanics add tools to their tool chest for specific jobs they've done, and common jobs start migrating the tools closer at hand. This is all done organically and good experienced people can do things quickly and efficiently (and it works at any employer, cross-platform) Doesn't mean these folks can't use visual studio or xcode. Or fix a flat on the side of the road with the tools that came with the car.
- jnxx 6y agoOn top of that, while you have tens of thousands of good tools at your disposal, you can simply forgot about those that you do not happen to need. Whenever you need them, they will be there for you, but until then, they stay out of your way, and don't waste your attention.
- jonnypotty 6y agoIDEs are one of the biggest barriers to programmer development, flexibility and knowledge. They try to insulate you from your actual environment and encourage lazy practices and thinking. I learnt java in eclipse and it was dreadful. Code completion stops you learning, IDE errors and auto fix stops you understanding compiler errors. build shortcuts stop you understanding how javac and maven builds work. In short they take all of the available deep knowledge your programming language and environment, hide it from you and then pretend it's a good idea to replace this with a load of superficial knowledge about how to click the right buttons in some bad software.
- jnxx 6y agoAnother advantage of Emacs compared to IDE is that it is resource-friendly, on multiple levels. Foremost, it is friendly to the resource which has become the most precious one, which is attention. It has a sparse interface which shows exactl;y what is needed. Compare that to a newly launched Edge browser which will show you totally inappropiate and distracting yellow press content when you start it. It is also resource-friendly to screen real estate, making a good use of the text space. Granted, large screens did become more affordable in the last ten years, but while attention is still a scarce resource, programs also did become much more complex, and, alas, your eyes are not going to increase in resolution, they will become worse in the course of your work life, which makes the screen space even more valuable. Emacs is also economical in terms of learning effort - the basic editing is simple, and you can focus attention to the things that you use most. Compared to that, IDEs are cumbersome. They are cumbersome in terms of modification, requiring endless deep menus which are nowhere documented, and not google-able, they have built-in build systems which will support only a few languages, they have complex non-textual interfaces, which are just a hassle, they force you to use the mouse, which in Emacs is entirely optional. I also think they support, in part, bad practices in coding. If you really need an AI and autocompletion to produce working code, I am not sure your code is that good for humans to read - and this is the most important aspect of code. It not only needs to be writable, it needs to be well readable.
- jonnypotty 6y agoAgree. Agree.
- bananadrama 6y agoAfter 10+ years of Eclipse, Vim, Atom, and IntelliJ... I've bet on Emacs over the past few years on the basis of https://en.wikipedia.org/wiki/Lindy_effect https://en.wikipedia.org/wiki/Lindy_effect and that it holds a unique space in computing re programmability: https://martinfowler.com/bliki/InternalReprogrammability.html https://martinfowler.com/bliki/InternalReprogrammability.htm... The authors mention "With code completion, Git control, and even automatic deployment systems, modern IDEs are a Swiss Army Knife of features.", perhaps without realising that: * code completion has been standardised via LSP (e.g. https://github.com/joaotavora/eglot https://github.com/joaotavora/eglot works great, and is planned to move into upstream Emacs ) * Emacs has great Git clients (Magit, vc-git) Diversity of tooling shows we're experimenting. Good!
- chronolitus 6y agoI hear chanting coming from outside my prison. Sure, it's a soft prison, of keyboard-only specialized-interface goodness. but a prison, still. I've heard chanting before, but this time it's different. It's louder. Could it be? I resolve to try a daring escape. If I can get this new C++ project set up properly, I might be out free! I've chosen an accomplice of good repute: VS Code. After 30 minutes of figuring out which extension to add for the project, how to configure the build, I still haven't managed to get it working. What could be the issue? It builds fine in the IDE but won't find declarations and headers properly. The google oracle offers no help. Hey, mr. Magician: I can compile the project just fine myself in a terminal, why don't YOU read my Makefile and figure it out? Too late, the vim guards arrive. They open my CMakeLists.txt parchment, and write "set( CMAKE_EXPORT_COMPILE_COMMANDS ON )". Immediately, YouCompleteMe whirrs to life and works perfectly. The guards drag me back in my old cell. Oh well, it's not so bad here, at least I can focus. And it keeps the mouse away. Until the next time I hear people outside chanting "Modern IDEs are magic".
- cooperj 6y agoI've been programming for 10 years now and I've never understood the hype on the internet about vim/emacs. No one I've known at the university or in 5 different software companies that I've worked at used vim/emacs as their primary code editor. Vi was used sometimes to change a config file or to inspect something while SSH-ed into a server, but IDEs have always been used as the primary ways to write source code. I've mainly worked with Java, JavaScript and Python. I started with NetBeans and Eclipse for Java at the uni, but soon moved to the JetBrains stack (IntelliJ IDEA, PyCharm, WebStorm). Everywhere I worked people have been using mostly IntelliJ, some of them VS Code recently. I tried learning vim properly, memorizing the shortcuts etc. I had several attempts at this throughout the years. Mostly because of articles like this one, hyping vim/emacs. But I always felt it slowed me down soooo much. Modern IDEs allow me to edit code, jump though files, classes, methods, variable usages, rename all usages of a class/method across the whole codebase sooo quickly! And almost everything works out of the box. I don't have to install plugins or configure anything to have syntax highlighting, git etc. I import a Gradle project and IntelliJ knows everything. I do get the argument from one of the comments that this isolates you from how javac/maven works under the hood, and that it can be bad. But throughout the years you'll learn those things eventually. And in the meantime you don't need to master them to be productive. I completely don't get the comments that you need to constantly Google things like "How to do X in Eclipse". Some of them you do need to Google, but most things are straightforward. Meanwhile when working with vim I kept constantly Googling things like "how to replace a word", "how to copy a line", "how to delete a line"... To sum up, I agree with one of the comments that said that it's the vocal minority that keeps talking about vim/emacs that makes it look so ubiquitous. In reality I feel like 95% of programmers use IDEs for most of their work, get their job done and don't talk about it. That's why it looks to be the other way on the internet.
- hallgrim 6y agoI actually think that you have to google a lot more for emacs. Lots of people in favor of command line editors also tell you that you should look at man pages etc rather than use a UI. They forget that if programming is not the only thing you ever do, the man page searching/googling never stops, because remembering where to click is this much easier than learning all the inconsistent keyboard shortcuts, command line flags etc.
- krzepah 6y agoSimplicity is what strikes the brightest of minds, some prefer to have simple shortcuts and a tone of sh*tware that prevent the user from knowing how to use it's tools (git, configuring an IDE), some prefer to have something they can master over the years, is standard in the industry, and that doesn't induce tons of un-controlled behaviours.
- orsenthil 6y agoThese are like interactive programming languages / environments that you will use to interact with your computer and with text files. It is convenient, once you have learnt them. I will wonder how a programmer would interact with the text on computer regularly without convenience of these tools.
- dejot 6y agoI do not understand why this article has such a negative bias against vim and/or emacs users. Comparing an emacs/vim user and a dog that does not want to walk on grass seems gross. Even calling them stubborn, well... The authors claim that "Modern IDEs are magic". As a freelance devops, i don't code-for-a-living being a magician, all i want to do is editing text, most of the time there's no magic involved. "Why are so many coders still using a keyboard?" Answer for yourself. I have been using emacs for a decade, and finally settled on vi/vim because of its broader availability. Both are excellent editors. I have also used dozens of graphical user interfaces for development, but as a devops i sometimes find myself in an environment that does not support graphics. Not having graphics at your fingertips may sound like a restriction, but it allows me to focus on my code rather than being distracted by color, hints, hovers, help, type ahead, code completion and the like. I do not need all that, i can freely speak my favourite programming language same as i can write a text without referring to the encyclopedia britannica every other word. Final rant: i consider the bio "He's spend over 15 years as a technical writer" as sloppy as the whole article.
- jnxx 6y ago> The authors claim that "Modern IDEs are magic". For me, the word "magic" in the context of program development is ambivalent at best. Often, it refers to stuff that some software tries to automate wildly, with the result that in easy cases it works nicely, without you having a description of what really happens, and in more complex cases it fails and turns into a mess, without you having any actual clue what happens. I think "magic" works actually only if you do have an interface which takes responsibility of actually everything, like an SSD firmware driver doing write layout for wear leveling. And no, getting 2,000 lines of automated boilerplate for some mundane programming task isn't "magic".....
- im3w1l 6y agoWhat's weirder to me is people who say they like gdb. Like I don't see how anyone who has ever used a gui debugger can be ok with the dog slow operation of it.
- avanai 6y agoI’ve spent 20 years in vim, Emacs, and various IDEs and I’ve come to the conclusion that nothing is more powerful for editing text than Vim’s interaction language, no system for text editing is more powerful and easier to customize than Emacs, and some languages really benefit from an IDE. So: I use Emacs with EVIL (vim emulation), and for Java I switch to JetBrains IntelliJ, also with Vim emulation turned on. Like a woodworker who builds their own tool bench exactly how they like it, a programmer needs a toolset that suits them and that they understand intimately. Yes, you can get a bench from Lowes and maybe save some time, but in the long run you’ll be better served by the one you built. Where the analogy breaks down is that a woodworker can customize an off-the-shelf bench pretty easily, but a programmer has a much higher barrier to customize/build plugins for an IDE. On the other hand customizing Emacs (or Vim, but I think Emacs is much easier to dig into) is trivial, and with a bit more effort writing really advanced customization that script your editor for whatever you need is pretty easy. If something breaks, in your code, an installed package, or the core editor, you can just debug it with a first-class built-in debugger. I often have project-specific code to e.g. spin up my current job’s integration test environment and run the test I’m looking at. Could I do that in Goland? Probably, with enough effort. But I can keep using the same tools I’ve used for 20 years to do it. If you’re interested in getting started I would recommend Doom Emacs to a new user these days.
- todd8 6y agoI started programming in the days of punchcards. Since that time I have tried more editors and IDE's than most people: ed, teco on teletypes, XEDIT on IBM 3270 terminals running on IBM Mainframes, CDC 6600 editors running on the Kronos OS, the editors on the University of Illinois Plato system, TextMate, Sublime Text, Jetbrain's IDEs, Eclipse, Xcode, Visual Studio and VS Code, and countless other less important editors and IDEs. The idea that I use Vim and Emacs because I don't know better is simply uninformed. I use Vim because no other editor connects my mind so directly to the code I am working on, as fast as I can think of where I want to be in the code or where I need to make the change, I am there and made the edit with just a few keystrokes. I use Emacs because of its phenominal collection of packages: org-mode for writing text, outlines, interactive agendas, literate-programming; magit for git, auctex for composing LaTeX, tramp for editing remote files over ssh; dired for viewing and organizing my directory contents and hierarchies. In addition to the hundreds of commands and built in packages there are over 4500 contributed packages that provide amazing facilities. All of this in a self documenting, fully programmable system. I pay for a subscription to the full set of Jetbrain's IDEs, they're great and worth far more to me than the much more expensive Adobe subscription that I have but use very little. PyCharm and CLion are great tools, and I've done most of my recent Java using IntelliJ. However, for writing code other than C++ and Java, I find myself most comfortable in Emacs. I believe that I could put together the right set of packages to make C++ or Java development on Emacs a satisfactory choice, but one of the weaknesses of Emacs is its programability and extreme flexibility--at some point you have to stop sharpening your axe and start chopping and here having a Jetbrains IDE definitely pulls ahead.
- iandinwoodie 6y agoWhat I like about Vim is that it has a limited set of features out of the box. As a result, I feel that I have a strong understanding and command of Vim. If I want an additional feature I can either add it myself or look for an available plugin. With plugins I usually go through an adoption period where I try to determine if the benefits of the added features outweighs the loss of total understanding of my setup or any degradation in performance. In other words, I enjoy that Vim is an onion with few layers. In contrast, modern GUI IDEs are more feature rich out of the box, but at the cost of tool complexity. Simple workflows are generally easy to get working, but adapting the tool to a complex workflow can have me clicking obscure options on the Nth option page without an understanding of what I've just done to solve the issue. As someone who works on a variety of codebases, tinkering around with setups for each project can (a) become a serious time sink and (b) can increasingly make me feel like I don't understand the tool if each setup seems to be relying on disjoint sets of new-to-me configuration options. Additionally, I personally feel that "magic" utilities can rob me of my understanding of languages and codebases. It helps me rest easy at night knowing that I can create a codebase from scratch without needing to rely on "Create new C++ class ..." and automatic refactoring features provided by an IDE. Regardless of my preference for Vim, I have found that a distributable configuration for a modern feature-rich IDE can be an invaluable asset for open source projects. Being able to open an IDE, load a configuration, and press the build button can remove significant barriers for contributing to projects where your understanding of the codebase and build system are nonexistent.
- phendrenad2 6y agoBecause using VIM and emacs are REAL magic. You invoke arcane key combos and your intents are enacted on text. And it is faster than using a mouse, and although we know that text input speed isn't the programming bottleneck, it still feels cool to be that fast.
- rambojazz 6y agoBecause I don't need a bloated IDE that tries to do as many things as a whole OS. I just need a useful text editor.
- physicsguy 6y agoEvery IDE I've ever tried is slow. That's literally it for me. I do use VS Code quite a bit for more complex refactorings, but I do use vim for quick edits to files + initial development. Edit: should say, I also do a lot of work on remote Linux boxes, often supercomputers. Vim is the only thing I can guarantee is installed - Emacs often is not.
- eclaw 6y agoI've been using Vim and Neovim for about 10 years now, steadily improving my dev experience with plugins along the way. Still, being a Frontend developer I really have a weak spot for beautiful interfaces like you find in VSCode or Sublime Text, so I've been trying to migrate plenty of times. BUT. Vim is just sooo comfortable to use once you get used to it, so I always ended up going back to (Neo)Vim. Being able to do everything with just a few surprisingly easy to remember/remap keystrokes is not only satisfying, but in many cases really fast as well. Plus with coc.vim and vista.vim there's just nothing useful an IDE can offer anymore.
- KMag 6y agoBack when I was working on Google's indexing system, we had a test-driven-development evangelist work with our team for a few weeks, helping get us up to speed with the latest best practices. He also kept strongly recommending we switch from Emacs/Vim to Eclipse, telling us how wonderful it was. Several of us tried it out. Our next meeting, we asked him what we were doing wrong that it took so long to start up, and was still a bit laggy for several minutes after starting up. He told us that it was re-indexing our code in the background at startup, and that we should really just start Eclipse on Monday and keep it open all week. At my current job, I use IntelliJ off a local install, and the startup time is painful compared to Vim off a network drive, and the UI gets laggy from time to time. It has some git integration, but if I switch branches, it takes IntelliJ tens of seconds to catch up. The auto-complete is also sometimes handy, but I almost always need to add a trailing token and then go back to the token I want auto-completed to prevent auto-complete from swallowing the existing trailing token. The way I work and the way IntelliJ likes to auto-insert close-quotes, etc. quite often ends up incorrectly closing something that's already closed, assuming I'm always editing code left-to-right. Sometimes, IntelliJ also gets into a state where it seems it has hit a race condition between parsing and editing code and it thinks my code won't compile, but it in fact compiles fine and restarting IntelliJ fixes the mis-parsing. The code indexing and auto-complete is handy, but it certainly feels like I'm both doing something wrong and have my setup a little off. The UI laginess across both Eclipse and IntelliJ across more than a decade, running from a local drive, even on a pretty beefy workstation, is easy to get used to, as long as you don't frequently switch to an editor that isn't laggy. On the flip side, I imagine if you're very used to auto-complete, it really messes up your workflow to go without it, and even more disruptive to switch back and forth between editors with and without auto-complete.