Ask HN: Can you recommend me a fast, light text editor for Windows?
What do you guys use when you want to quickly open a file? I used to use VS Code for this purpose, but it's becoming more and more like an IDE and doesn't quite have the startup time that I would want anymore. Plus, it's a bit annoying when I already have a project open as it'll open as a tab and look as if it's part of that project if that makes sense.
Notepad almost fits my spec (startup time, simple, quick UI), but it doesn't have syntax highlighting or anything useful for text manipulation/navigation/etc.
I could never get along with Notepad++ - it's hard to explain why, because I can see it's a fantastic editor and is very popular, but it just doesn't fit into the way I work I suppose.
I think the main key points for me are startup time and syntax highlighting.
Thank you!
176 comments
[ 2.0 ms ] story [ 226 ms ] threadFor ornery files (usually 50+ MB XMLs), I've used an editor in WSL (like nano). Is WSL an option for you?
Seems pretty fast, and has some plugins that might also add additional functionality. seems great for the occasional file edit without the vscode startup times.
* I use Packer for plug-in managment: https://github.com/wbthomason/packer.nvim
* I use Mason to install LSPs, linters and formatters: https://github.com/williamboman/mason.nvim
* I use nvim-treesitter for better highlighting: https://github.com/nvim-treesitter/nvim-treesitter
Bonus: it works cross platform (windows/mac/linux).
I have yet to find it's max file size limit. It can seemingly open up literally anything with no perf impact.
That said, if your file is more reasonably sized (I've opened 7GB files no problem) then the performance and feature set you get is impressive. You can get instant scrolling to anywhere in the file, full syntax highlighting, find and replace, multiple cursors, etc all with reasonable performance. I find it does lag a little when making edits - especially with multiple cursors - but it's still quite usable.
That's what mmap does: maps the entire file into the address space of the process while letting the kernel load the pages as they are touched. I assume that would improve performance significantly but I'm not sure if anyone's tried it.
However mmaping files which can be modified by another process concurrently is tricky. You can just get killed by SIGBUS.
It seems that vim could work this way as you are always dealing with a small section of text at a time. However, this seems not to be how it works.
- $99 (USD) for a perpetual licence for the current version at the time of purchase + 3 years worth of updates.
- Per-user rather than per-machine, so you can install it on multiple machines with a single licence.
SublimeLinter was modified 2 weeks ago, Side Bar Enhancements 1 month ago, Bracket Highlighter 2 weeks ago, etc.
Sorting by last modified on https://packagecontrol.io/browse/updated, you need to go to page 20 to find the ones updated more than one year ago.
For USD 99 you get three years of support for an individual license.
It also eschews Windows’ notoriously dodgy text rendering in favor of its own which means that it doesn’t share text rendering quirks with e.g. Visual Studio (the full fat IDE, not the electron thing). When doing C# work I wish I could transplant Sublime’s editor view into Visual Studio because it’s just so much better.
Now, we need a project-editing IDE like JetBrains with better responsiveness.
Showing an OOM lower RAM and CPU use in the Task Manager.
https://www.rizonesoft.com/downloads/notepad3/
I haven't tried Notepad3, but I've used Notepad2 for years and preferred it to Notepad++. Great little editor. Bonus: no installation needed (useful if you don't have admin privileges on the machine).
https://www.flos-freeware.ch/notepad2.html
(Last updated 2012, but don't let that put you off. Solid little editor.)
You can also make your own pretty easily using lazarus/fpc and the free synedit component.
https://www.flos-freeware.ch/notepad2.html
https://www.reddit.com/r/software/comments/nxpmis/notepad3_v...
* https://en.wikipedia.org/wiki/SciTE
EDIT: just noticed you mention syntax highlight. No love there, sorry.
It does struggle with very large files, though.
[0] (better link) https://www.scintilla.org/SciTEDownload.html
Ticks all boxes: Small, Fast & Light.
If you prefer GUI, I think Notepad++[4] is the best editor you can get, but there is also Sublime[5] (like already mentioned), Visual Studio Code[6]. Some people like jEdit[7], but that's not my personal favourite.
[1]: https://www.vim.org/download.php
[2]: https://github.com/helix-editor/helix/releases
[3]: https://www.gnu.org/software/emacs/
[4]: https://notepad-plus-plus.org/downloads/
[5]: https://www.sublimetext.com/
[6]: https://code.visualstudio.com/
[7]: http://www.jedit.org/
https://www.sublimetext.com
- Instant startup.
- Very fast.
- Well-built software.
- Handles everything I throw at it; a lot of which would render other editors unresponsive.
- Great plug-ins.
I've used Sublime Text and have been recommending it to others since the first version. I still recommend it above all other text editors; especially for folks working on a Windows machine.
It bugs me that every extension I install is by default enabled and I have to disable them per project explicitly.
And I have same pity as op : vscode open is not instant AND it opens the file not in new vscode window, but some unrelated window which I used to open specific folder.
Otherwise VSCode is great.
Edit: Looks like ongoing effort is in progress to tackle extension problem: https://github.com/microsoft/vscode/issues/40239
data:text/html, <html contenteditable>
There's also lite-xl[3] and CudaText[4], which are not based on Scintilla. Lapce[5] also looks promising, although it's slightly stretching the "light" condition.
For years, AkelPad[6] was considered to be the best substitute for the bundled Notepad, but it hasn't been updated in a while, although it still works absolutely fine in that role.
For the console, Helix[7], Micro[8], Moe[9] are all possible options which will work in cmd.exe out-of-the box.
Regarding vim/nvim - I had some issues with plugin-heavy configs running on top of Cygwin, but YMMV.
0. https://www.geany.org/download/releases
1. https://github.com/orbitalquark/textadept/releases
2. https://github.com/rizonesoft/Notepad3
3. https://github.com/lite-xl/lite-xl/releases
4. https://cudatext.github.io/download.html
5. https://github.com/lapce/lapce/releases
6. https://akelpad.sourceforge.net/en/download.php
7. https://github.com/helix-editor/helix/releases
8. https://github.com/zyedidia/micro
9. https://github.com/fox0430/moe/releases
Vim is actually quite pleasant to use standalone until you reach for a shell and find cmd instead of bash - at which point cygwin/msys/etc. find their usefulness.