TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What text editor do you use and why is it your editor of choice?

31 pointsby fvargasover 8 years ago

38 comments

flukusover 8 years ago
Vim. There are vim like modal editing plugins in most IDE&#x27;s but I use vim specifically for 2 reasons.<p>1. The windowing. None of the editors&#x2F;IDE&#x27;s with full gui front ends handle windowing as well as vim (and emacs). Just this morning a was stuck in visual studio trying to track down an issue, swapping files everywhere and forgetting what I was trying to find by the time I got there. I opened up vim and could have it all in one screen, simplifying my mental load. It&#x27;s also great for day to day things, like having a multiple views and a controller open at once in an MVC app.<p>2. Scriptability. Vim script is the php of editor languages, it&#x27;s very easy to get started and&#x2F;or write some quick and dirty scripts. Most of my day to day pain points are scripted behind a couple of key strokes. Also like php unfortunately, it&#x27;s warts become noticeable on larger plugins.
评论 #13034306 未加载
eivarvover 8 years ago
Sublime Text for local work, because of:<p><pre><code> - Its speed - Standard system shortcuts - Its many great features (minimap, multi-cursors, etc.) - Packages that extends the core functionality even further - Python extension API, which is pretty easy to use - It not being a huge battery drain and a resource hog </code></pre> Vi(m) on remote hosts, as its very powerful and always available.
atsaloliover 8 years ago
I use vi because: a) it is the standard editor on UNIX systems. b) I haven&#x27;t invested the time to learn emacs yet. :-)<p>As a sysadmin, I have to deal with many types of UNIX systems, and it&#x27;s nice to work with something&#x27;s that&#x27;s standard that&#x27;s likely to be there, no matter how old or new the system.<p>I even teach vi professionally (<a href="http:&#x2F;&#x2F;www.verticalsysadmin.com&#x2F;vi.htm" rel="nofollow">http:&#x2F;&#x2F;www.verticalsysadmin.com&#x2F;vi.htm</a>) and people enjoy how powerful vi is.<p>Modern vi (vim) has some many nice enhancements as well.
johnmwover 8 years ago
- Random text editing? Sublime text. Fast, multi platform, native, great plugins, and I&#x27;ve paid for it, else I might have used Atom ;-)<p>- HTML&#x2F;JS Coding? VS Code - not native but still pretty fast and has many things that make developing wonderful such as Intellisense and Git integration.<p>- Remote config editing? Vi or Vim, it is fast and it is always there for you.<p>- CLJS or Clojure tinkering? LightTable, with its immediate feedback is great for trying out Clojure ideas.<p>- The power of the old gods + a bit of finger speed and sanity? Spacemacs. It combines the speed of Vim with the power of an Emacs Lisp environment, plus has many amazing plugins (looking at you, org-mode), and also works on a remote host.<p>- On Windows? Well, Notepad++ is not bad. It can deal with pretty large files better than many other editors.
stevekempover 8 years ago
Emacs for all coding, and general writing. I like it because I&#x27;ve grown very comfortable with it over the years, and the extensive library of lisp allows me to do nearly anything.<p>(Years ago I wrote a Registry Editor for NTEmacs! Much Lisp is available at <a href="https:&#x2F;&#x2F;emacswiki.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;emacswiki.org&#x2F;</a> )<p>The only exception is writing email for which I use vim. Mostly this is because I use a text-based mail-client (which I wrote) over SSH. So having a daemon-process doesn&#x27;t make quite as much sense. Vim allows me to easily reply&#x2F;compose to emails with spell-checking, and that&#x27;s about the only thing I&#x27;ve turned on.
评论 #13036932 未加载
评论 #13038296 未加载
jstewartmobileover 8 years ago
1st: Sublime Text. Multi-cursor editing built-in, fast, uses same shortcuts as all other GUI apps.<p>2nd: vim. Powerful, available everywhere, only real drawbacks to me are lack of native multi-cursor, and that all of the cool vim features don&#x27;t carry over to all of the other programs I deal with text in.
cateramaover 8 years ago
Dad taught me Vi, now I use Vim.<p>I work in the sciences and incidentally, a number of my colleagues say they use either Vim or emacs because that&#x27;s what their PhD advisor used.
ojiikunover 8 years ago
100% vim in a terminal (with gnu screen, naturally). it tends to be installed on just about every machine I am called upon to admin or work on. I even do day to day development in a term window because I like that when I shell into a server at 3am to fix something, it feels The Same As Always. I keep a fairly complex vimrc up on a public repo so I can have my config anywhere at a moment&#x27;s notice.<p>I think I only chose vi over emacs (those were the only real options when I learned) purely because I couldn&#x27;t figure out where the &#x27;meta&#x27; key was. first big breakthrough was getting really good at jumping around files without a mouse. second big breakthrough was mastering multi window mode and keeping lots of buffers open like an IDE.<p>it might just be junk psychology, but I hate every IDE I have tried in 20 years because I can&#x27;t tolerate the non-instant startup or the code not getting 100% of screen real estate.
imodeover 8 years ago
1. nano. standard in many distributions, easy to work with, I don&#x27;t have to go through the complex commitment to muscle memory that modes require.<p>2. geany. larger projects demand something a little more, and geany provides just that. light enough that I can keep it running almost 24&#x2F;7 and feature-full enough to support large projects with dozens of files.
评论 #13035856 未加载
arnooooooover 8 years ago
Emacs with Evil-mode. Because Emacs is an awesome platform, which gives me the power of Lisp, and Vi is an awesome editor.
评论 #13035744 未加载
suprjamiover 8 years ago
I use a hex editor and write in raw Unicode.
评论 #13034739 未加载
Wildgooseover 8 years ago
Emacs - it feels so natural that I have an unfortunate tendency to automatically use Emacs keypresses in other editors unless I consciously interrupt my thinking to use whatever they require.<p>On Windows I always drop Notepad++ in as a direct replacement for the truly execrable Windows Notepad.
评论 #13035766 未加载
b3b0pover 8 years ago
Previously, I used Vim. Now I use Emacs via Spacemacs. I honestly probably can&#x27;t give a reason for changing. I wanted to check out Org and Magit. I also got tired of maintaining and hacking my .vimrc, endlessly tweaking it to never feel complete, polished, or content. My configuration is now well tested and changes are decided on by a large community of users. I&#x27;ve messed with Sublime and even bought a license, but don&#x27;t feel like it&#x27;s a good idea to commit myself to learning it and would rather use that time to be better with something like Emacs or Vim that have stood the test of time.
rawlandover 8 years ago
Vim:<p><pre><code> When being on the road (battery) &amp; working on HPC machines. With a nice dotfile kit (https:&#x2F;&#x2F;github.com&#x2F;rscircus&#x2F;dotfiles) inside tmux. </code></pre> Atom:<p><pre><code> When being plugged in somewhere. Also with a nice synced setup (https:&#x2F;&#x2F;github.com&#x2F;atom-community&#x2F;sync-settings). </code></pre> Atom is nice to the eye. I.e., Markdown Preview, Minimap, etc..., however, it&#x27;s just a huge battery drain and therefore I usually prefer Vim. I&#x27;d dare to say, that Vim is still more powerful, as the contact to the terminal (and its powers [1]) is very good.<p>And it&#x27;s just plain FAST!<p><pre><code> [1]: ripgrep, git, fzf, ctags, piping stuff through this and that, etc...</code></pre>
krylonover 8 years ago
I have been an emacs user for about ten years now.<p>When I started programming, I used emacs, then switched to vim. I used vim for a couple of years, and I have fond memories of it. I think the occasion to switch back to emacs was my attempt to become familiar with Lisp, but I am not entirely sure any more.<p>But eventually I re-discovered emacs and its customizability and extensibility. The fact that you can run a shell, a Lisp&#x2F;Python&#x2F;Ruby-REPL or an SQL session in an emacs buffer helped.<p>Also, emacs comes with a builtin Unix-ish shell written in elisp, which is nice on Windows.<p>For quickly editing a file (usually some config file) I still use vi sometimes, although it is becoming less common since I discovered emacs&#x27; server mode.
thewhitetulipover 8 years ago
<a href="http:&#x2F;&#x2F;geany.org" rel="nofollow">http:&#x2F;&#x2F;geany.org</a><p>I used to use Visual studio code earlier, it took way too much energy and RAM. My MBP ran for around 6-7 hrs with it, with Geany it runs for 9+ hrs. Written in C and it is minimalist.
gempirover 8 years ago
VS Code on Node, go or random projects because I like the extension system and it&#x27;s very light, simple and free. Used to use Atom but that crashed all the time and was slow.<p>For big PHP projects PhpStorm because it does everything
fvargasover 8 years ago
Some of the factors I value in an editor are customization, modality, efficiency, performance, and battery drain.<p>- Eclipse -- I used Eclipse when I used to do a lot of Java programming. I hardly ever write Java anymore and my editor-oriented values have since also evolved. Pros: Works well out of the box. Many features for easily and efficiently writing and testing code. Cons: I&#x27;m not a fan of the bloated IDE environment. Speed is not a strong point. I don&#x27;t recall it being very customizable.<p>- Sublime Text -- All around solid editor and works well without any configuration. Pros: Looks and feels nice. Strong plugin ecosystem. Fairly customizable? Cons: For a while there was no development and the project seemed abandoned. I believe this has improved and there is at least more active development.<p>- Atom -- Looks and feels great to use. Pros: Active development and strong plugin ecosystem. Very customizable. Also let&#x27;s you get things done without configuration. Low learning curve. Cons: Sometimes slow and can drain your battery (Compared with other commenters, I haven&#x27;t found slowness or battery drain to be that major of issues)<p>- Vim (terminal) -- Hard to beat efficiency. Pros: Super customizable. Highly efficient text editing. Use from the terminal provides power (i.e. convenience) when work takes places predominantly in a terminal. Available on nearly all *nix systems. Convenient for editing files on a server. Easily git clone your config to a new system and you&#x27;re good to go. Doesn&#x27;t pose an issue for battery. Cons: Learning curve. Not so out of the box friendly (unlike most of the other editors I mention). I often see people using vanilla (or near vanilla) Vim without realizing how much they&#x27;re missing out on the plugin ecosystem. Requires investment in order to get the most power out of it.<p>- Visual Studio -- Used VS while writing C# for a few months. Pros: Works well out of the box. Very helpful code completion. Lots of features I didn&#x27;t use but some might find useful such as managing a git repo through the GUI. Extensible. Cons: Felt unnecessarily bloated (for my tastes). Slow startup. Cluttered GUI. Not very customizable (though I didn&#x27;t try too hard).<p>Text editors I&#x27;m curious about are Spacemacs, Neovim and VS Code.
rubyfanover 8 years ago
Textmate for projects at home. I use it because it&#x27;s a decent editor for Mac and I used it a lot in my previous job.<p>Notepad++ and Vim at work. I am forced to use Windows and enjoy a lightweight editor over and IDE. Notepad++ is light but has decent support for plugins and code highlighting. I use Vim on Linux servers for remote editing and good highlighting. I&#x27;ve used Vim for like 20 years but never spent much time learning much more than the basics (insert, delete, regex search&#x2F;replace, line numbers, and write&#x2F;quit).
joeclark77over 8 years ago
I like Vim for editing markdown (I write books on Leanpub, and use Deckset for my lecture presentations, so this is serious work). I&#x27;m still learning it but I enjoy learning how to customize it. My advice: google and implement one change at a time, rather than trying to add ten different features to your .vimrc all at once.<p>For coding Python, I prefer PyCharm from JetBrains. In time I may get Vim to do everything a real IDE does, but time is money and I can&#x27;t wait.
ferdi_over 8 years ago
I use Atom cause I can use thousands of extensions that make coding faster and sometimes easier. I sometimes use Brackets cause I can see instantly what I&#x27;m doing
drakonkaover 8 years ago
At work I use Windows and use Notepad to keep track of random notes (not a great solution actually, since I end up with dozens of unsaved notepad windows). Coding is all in Visual Studio, except maybe Atom for some smaller scripts.<p>At home I run Fedora and use Visual Studio Code for random notes and code snippets. I work on a PHP personal project at home so for that I use PHPStorm.
评论 #13035271 未加载
shaknaover 8 years ago
Config files, one line edits, etc.:<p>* Vi (its everywhere) * Nano (its good enough for 80% of what I do, and fast, and nearly everywhere)<p>For scheme things:<p>* Dr. Racket. Its amazing. * Emacs. Its a grumpy old fart, but there isn&#x27;t really anything better on the cli. * A million nREPLs with file system access to dump their own environment to file.<p>For project sized things:<p>On Windows, Notepad++.<p>Anything else, Sublime Text, because of its speed.
corecoderover 8 years ago
I stopped using emacs the moment I started using a mac, I kept erasing text pressing CMD-x instead of ALT-x, and other such annoyances. To date, if I have to use IRC, I open Emacs and use erc. For everything else I keep switching every few months between Atom, Sublime Text 3 (purchased) and VS Code.
brak1over 8 years ago
Vim (or, PHP Storm using VIM plugin - although it isn&#x27;t as powerful as normal vim), just because it is much faster to use&#x2F;navigate&#x2F;edit (and available on any machine).<p>I prefer vim in a proper gui though (as opposed to in a terminal app), its just a bit easier sometimes to use a mouse...
amitprayalover 8 years ago
Jedit - the most underrated editor, its extremely customizable and has great set of plugins
_lpa_over 8 years ago
I&#x27;ve moved completely from Vim to Spacemacs. I can&#x27;t see myself going back to plain Vim any time soon. The emulation via evil is very good, and the layers provided are generally immediately usable with consistent keybindings.
sethammonsover 8 years ago
vs code due to its Go support
评论 #13053324 未加载
Zardoz84over 8 years ago
Vim on Cygwin &amp; notepad++ on work. NeoVim and a few times Kate on my PC.<p>I work usually on windows with Eclipse + Vrapper (Eclipse poor Vi emulation plugin). But every time that I can, I try to use Vim to edit files.
worldofprasannaover 8 years ago
Intellij Idea + IdeaVim plugin.<p>Navigating between files was so comfortable that I started reading lots of code than before. We can literally see the increase in productivity.
Fejover 8 years ago
I am honestly surprised at the lack of flames in this thread.
pmontraover 8 years ago
Random small files: vim.<p>Java projects: the IDE mandated by the customer.<p>Anything else: emacs.
jagermoover 8 years ago
For texts and articles: Scrivener<p>For tinkering around: VS Studio Code
greatest-apeover 8 years ago
IntelliJ IDEA with the vim plugin. This gives me great code completion, auto imports, go to definition etc. And the ergonomics of vim.
adambreneckiover 8 years ago
I have text editor commitment issues; I change editors somewhere between bi-weekly and bi-monthly. Some of the reasons why I switch to and fro:<p>- Visual Studio Code—pull factors: Better performance than Atom. Solid language support for Python, and excellent for JS and TypeScript, and the Language Server Protocol means that the UI is identical no matter which language you use. Looks good. Push factors: Not as customisable as other editors, especially visually. Startup time still leaves me wanting.<p>- Atom—pull factors: Infinitely customisable; basically the Emacs of the 21st century. Looks good. Push factors: Git integration is nowhere near as good as VSC (ironic considering its authors), and I&#x27;ve yet to find a Git plugin I really like. While it&#x27;s not unusable, the performance isn&#x27;t the best.<p>- Sublime Text—pull factors: Performance. The ST dock icon often doesn&#x27;t even get to finish its first bounce animation before it&#x27;s ready to go, and it can handle large files amazingly. Push factors: Stagnation, both in the editor and the plugin ecosystem, compared to Atom and VSC. (It seems like this has been improving a bit lately.)<p>- Chocolat—pull factors: Really beautiful, native Cocoa UI. Buffer list in the sidebar instead of tabs and command-click for split windows is really neat, and I wish more editors worked this way. (VSC and ST can both be configured to get half-way there, but they both conceptually differ with Chocolat on how splits work, and I prefer Chocolat&#x27;s approach.) Push factors: Less extensible, and worse plugin ecosystem, than anything else on this list. (You can&#x27;t even provide a third-party autocompletion engine.) Not cross-platform, so I can&#x27;t use it on my Linux box at work. Configuration is through a GUI only, so difficult to keep under source control and sync across machines. No complete-as-you-type. Hasn&#x27;t had a release since June. Actual text editor widget seems kinda janky sometimes.<p>- Vim—pull factors: Modal editing. (All of the others have Vim-emulation plugins or a Vim mode, but they have varying levels of usefulness. Chocolat&#x27;s can&#x27;t even easily do key remappings last I checked.) Rich plugin ecosystem. Push factors: Vimscript somehow manages to be the only language more puzzling and hideous than Bourne&#x2F;Bash shell scripts, although to its merit it doesn&#x27;t have a keyword called &#x27;esac&#x27;. GUI mode is essentially an in-process terminal emulator.<p>There&#x27;s a few more I&#x27;d like to try, like Brackets, Coda (I love the idea of having terminal emulator tabs in your text editor! I&#x27;m not sure if I like how web-focused it is though), and CodeRunner; and a few more I&#x27;ve tried before but not stuck with for any length of time, like TextMate and BBEdit. I also used PyCharm at work for about six months, but stopped when the VSC Python extension started getting good and haven&#x27;t gone back since. But those are the ones that I&#x27;ve actually used in earnest for a decent length of time and still regularly switch between.
cdnsteveover 8 years ago
Visual Studio Code. Love it. Flexible, fast, no bloat and handles Python and other languages well.
rurbanover 8 years ago
emacs and joe on nox shells.<p>Why? It can do everything. For 25 years ongoing
aprdmover 8 years ago
Sublime with vim mode.