8 ms·
The story of TextMate, VIM and SublimeText
- hackada 15y agoAll this is fine, but I definitely need a debugger with a gui
- tylerlh 15y agoI can't recommend Sublime Text 2 enough to do it justice. Such a fantastic editor.
- chj 15y agoI would like to try any of these if I am not so addicted to org-mode. I can't live without emacs despite that I hate its slowness very much.
- darthdeus 15y agoI used to be really addicted to hardcore code completition and refactorings for Java in IntelliJ, it just felt like there is no other way. I had the same feeling when I was considering Sublime while using VIM, I thought there's no other way to edit text than the way VIM does it. And both time it paid off that I gave another editor a try :)
- Derbasti 15y agoLearning a new tool is learning a new way to think. It always pays off.
- rmccue 15y agoI can't vouch for it, but Sublime does have a port of org-mode: https://bitbucket.org/rchl/sublime_orgmode/overview https://bitbucket.org/rchl/sublime_orgmode/overview Might be worth a try.
- Derbasti 15y agoI tried it. It is good. It supports lists, with checkboxes, and completion ([1/3]). It supports some links. It does not support tables. You can not reorder entries. It does not support code blocks. You can fold, but you can not narrow (i.e. all headlines stay there, but content is folded away). Your favorite keyboard shortcuts are not there (though you can change that easily). As much as I like Sublime Text, I am more productive in Emacs.
- chj 15y agoAlso tried it. The editor itself is great and very fast, unfortunately the org-mode clone is much less than the original.
- nyellin 15y agoTry Emacs with evil mode for Vim emulation. It doesn't get better than this. It is almost like having a lisp-based Vim.
- beggi 15y agoI am a former user of both TextMate and Sublime Text. The TextMate story everybody knows, it was good at first but got stale with no updates. I feel Sublime Text is fantastic, but after reading some article on Janus (https://github.com/carlhuda/janus https://github.com/carlhuda/janus) I switched over to MacVim. After fiddling around with Vim for a while I can honestly say I'll need some serious convincing to switch to another editor. I've always stayed away from Vim except through occasional need for text editing through SSH or something, because out of the box it doesn't feel quite right. But after Janus sets up some sane defaults it feels great, and after putting a few hours in to learn all the shortcuts and study plugins I have never felt as productive. I feel like Janus is sort of training wheels though cause it has a lot of plugins I don't use etc, but it's great to start and as I use Vim more I reckon I will start to manage my own .vimrc. P.S., bcvi is so awesome.
- darthdeus 15y agoThe good thing about janus is that it also provides a simple framework for customizing your plugins, even if you change all of the original settings. I've made my own fork (https://github.com/darthdeus/janus https://github.com/darthdeus/janus) and basically removed 90% of the default plugins and settings and repalced them with my own, but I still use it for the Rake task and nice directory structure.
- maidenvoyag3 15y agoThis is actually my first post ever on HN. It is in fact not very often that I post anywhere on the interwebs. But I have to speak up. Can. We. Stop. Posting. About. Fng. Text. Editors. Please. Imagine a room where you teleport in computer greats (in no order of importance, and I am probably forgetting tons of worthy people in my pang of internet angst) such as Gates, Torvalds, Ritchie, Thompson, von Neumann, Knuth, Turing, Carmack, ..., Joy, Berners-Lee, Babbage, Stroustrup, Dijkstra, Norvig, Moore, Noyce. I don't think these guys would start talking about text editing, so why should we?
- darthdeus 15y agoPeople talk about what's important to them. For some it might be proving that SVN is stupid (Torvalds?) and for others it might be proving that one editor is superior to others (SublimeText 2 obviously </sarcasm>).
- beggi 15y agoOh yes, I can't imagine a room full of professionals talking about the tools they use to get their job done.
- hwiechers 15y ago"When art critics get together they talk about Form and Structure and Meaning. When artists get together they talk about where you can buy cheap turpentine." - Pablo Picasso
- Jimmie 15y ago"I don't trust un-cited quotes on the internet anymore" - Gandhi
- SeamusBrady 15y agoMy Dad is a classic car enthusiast. He will quite happily talk to his fellow classic car enthusiasts about the obscurities of 1970's carburetors for hours. But who else would want to do this? Programmers write lots of code in text editors (usually - hello Smalltalkers!). They will quite happily discuss text editors for hours. Welcome to HN :)
- Derbasti 15y agoThis could be my story, even though in the end (after Textmate, then Vim), Emacs tempted me more than Sublime Text and I eventually switched back to it from Sublime Text 2. There is too much accredited awesomeness in Emacs (and to a somewhat lesser extent, Vim), to be overthrown by a newcomer. That said, Sublime Text is very worthy competition and given a few years, it might actually live up to those two dinosaurs.
- Derbasti 15y agoHe talks about the Destroy All Software Screencasts. Are they worth it?
- darthdeus 15y agoIf you're into TDD and Ruby, then they're probably the best ones you can find. But if you don't like testing, then I would suggest saying away :) There's a free one that you can check out here https://www.destroyallsoftware.com/screencasts https://www.destroyallsoftware.com/screencasts on the bottom of the page ... and see if you like it.
- nyellin 15y agoIf the author could switch that easily to SublimeText, he wasn't properly using Vim.
- Chirono 15y agoCare to elaborate on that? I'm fairly entry-level when it comes to vim and I'd be interested to hear some good examples of what it can do over something like sublime.
- alinajaf 15y agoThe level of comfort using vim for a proficient user is very very high, so much so that it becomes difficult to switch out to other editors. I'm quite sure that textmate, sublime and emacs are perfectly good editors, but there's no way I could ever switch full time. If you're a touch-typist and you become proficient in vim, the friction between thinking about an edit and it materializing on the screen in front of you is reduced. I think 'whoops, need a comma there', my hands move around a little without thinking and the edits done. Contrast this with move hand to mouse, click where you want to edit, hit backspace, type in new character. IME this is not necessarily faster, just a lot more comfortable once you get used to it. A lot of comments will say 'you can have vi-mode in <other editor>' but I've yet to see an implementation that covers the entirety of normal mode _and_ supports custom remaps, and even then the mappings would need an interface to its plugins before it approaches a vim-like environment.
- nyellin 15y agoOK, I'm the grandparent post and I'll say it. You can have a vi-mode in Emacs and it is called evil-mode. Vim plugins obviously don't work, but there is a world of Emacs libraries and you can now extend your editor in lisp. There are still some inconstancies that bother me (e.g. special buffers that don't respect vim shortcuts), but overall I'm happy.
- gnaritas 15y agoWhy would I constrast it with reaching for a mouse? I've never in my life thought whoops, need a comma there, and reach for the mouse; other editors can be used through the keyboard, this isn't unique to Vim.
- IgorPartola 15y agoFast fuzzy search across your entire project is called grep. Why do we keep rediscovering tools that have existed for such a long time? Edit: I suppose people keep rediscovering these tools because even if they use vim, they often times insist on running it as a stand-alone GUI application, rather than in a terminal emulatir where the built-in task switching/multitasking makes it very easy to run complex shell commands, move files around, use your VCS and switch back to your editor. Another benefit is that now you can have the exact same work environment over ssh as locally.
- danieldk 15y agoFirst, grep requires specify intermediate characters. For instance, to match SublimeText, you need the regular expression 'S.*B', while in Sublime you could just type 'SB'. (Neither is better, they just serve different purposes.) Second, grep is not comparable, it's a different tool. For instance, if you would want to open the openCorpus function in the file MainWindow.cpp, in Sublime you'd just type "MWcp@opC", and you are there. While typing the pane and window dynamically update, allowing you to narrow down the 'search space' quickly. Grep is for searching for text strings in files in the shell or shell scripts. Sublime's Goto Anything is for searching files and symbols in a text editor. Edit: I like and use both vim and ST2, but neither grep, ctags, nor Peepopen provide the smooth experience of 'Goto Anything'. Of course, conversely vim also has many things to like over ST2 (such as modeful editing that is definitely better than ST2's Vintage).
- gabyar 15y agoNope, fast fuzzy search is closer to find than grep since it looks for files. But it requires less keystrokes and precision, allow you to be lazier. It's a much more fluid experience. I still use grep a lot while using ST2, but I use it for other purposes.
- cmurphycode 15y agoI think one huge benefit is the "instant"-esque nature of a find as you type fuzzy search in a GUI. In Bash, you can do incremental (find as you type) history search with Ctrl+R. Something analogous for grep would be fantastic. Displaying more than one result at a time would also be great. Another thing that grep/find lacks is a index that could make large fuzzy searches faster, but clearly that can be added too.
- jebberjeb 15y agoYou know you've been truly affected by a text editor when you drop back to writing comments in web forms and feel like you're walking in quicksand...
- JonnieCache 15y agoAlso worth noting that ST2 has a vim emulation mode, called "vintage" mode. IIRC it's just a native ST2 plugin in python.
- llimllib 15y agoAs a long-time vim user, I found it to be obviously incompatible within moments.
- nuclear_eclipse 15y agoAs another long-time vim user, it's more of a vi-compatible mode, and isn't anywhere near perfect, but it's good enough that I get modal editing with the majority of movements and commands that I use in day-to-day editing. Most of the "missing" vi/vim features just don't have appropriate command-mode bindings, so it's simply a matter of getting used to the default ST2 bindings for those, or doing some leg work to make those vintage bindings that you really care about. I've only been using ST2 for a few weeks on a Python project, but I feel that the end result is better for me than trying to patch together a chain of vim plugins. I gladly give up a few of the more esoteric vim features for the integrated project editing features of ST2.
- llimllib 15y ago> I gladly give up a few of the more esoteric vim features for the integrated project editing features of ST2. Right, I just wanted to point out that it's not a very vim-compatible vim mode so people aren't surprised if they try it out.
- deleted 15y ago[deleted]
- dgalling 15y agoHas anyone else experienced the slowness the author described with Vim? I think it's possible he may be experiencing slow terminal update time (the OS X terminal is really slow in the scenario he described) instead of Vim being the culprit. MacVim, for example, doesn't have this problem, in my experience.
- eridius 15y agoDid he edit the article? I don't see anything about vim being slow.
- g3orge 15y agoPeepOpen supports Vim as well.
- gexla 15y agoVim has the keyboard entry conquered. Emacs may come close enough, but if we are talking photo finishes to races, then I think Vim always edges out emacs by a hair or more (but still misses a lot which Emacs provides.) We will have to get a totally different interface for entering text before Vim is knocked off its perch. Emacs has a much better Vim mode for me than SublimeText 2, but neither can really give you Vim. The deeper you are in the Vim rabbit hole, the less likely you will be to return to try anything else. Emacs wins out against everyone for scripting. There is one other reason that I knew would always keep me in the Vim and Emacs world. At first I couldn't figure out what it was that bothered me about SublimeText 2. Vim and Emacs is open source! I don't see this point mentioned in arguments for or against but this is important to me.
- Derbasti 15y agoThe thing about Emacs is really its extensibility. There is simply no other text editor out there that can open a single C/C++ source file and automatically infer all tags (even of included headers) without any kind of project set up. That is simply awesome and to my knowledge only available with semantic-mode in Emacs. Vim can use ctags or cscope or clang, but that is not the same thing. These are great tools, but they need to be set up with the correct include paths and they need to be run regularly to be useful. To my mind, that is what makes Emacs so unique and powerful and that is something that really, no other program can hope to accomplish in a short time frame (sorry, Sublime Text). That said, Vim hands down beats Emacs when it comes to pure text editing speed. It's keybindings are just a lot more powerful and flexible than Emacs's. And of course, that is what evil-mode is for. It emulates a subset of Vim in Emacs. It is by far the best simulation of Vim I have ever seen (judging from ViEmu, Viper, Vintage, Vico and Vimpulse), but it is not the real thing. Plus, there are lots of great Vim plugins that do not work in evil-mode. I, for one, use Emacs and Evil and I am happy with it. And I hope that Sublime Text will provide a potent entry-level drug for the next generation. But really, without open sourcing it at some point, I can't see it catching up to The Big Two.
- lobster_johnson 15y ago> There is simply no other text editor out there that can open a single C/C++ source file and automatically infer all tags (even of included headers) without any kind of project set up. The SublimeClang plugin for Sublime will do this, pretty much. You may have to add a few paths to its global or per-project config file, but that's pretty obvious considering that it needs them to parse referenced files. It works extremely well, giving you autocompletion of any C/C++ symbol as well as automatic compilation error indicators.
- deleted 15y ago[deleted]
- allertonm 15y agoTitle is incorrect, should be: "A story about me". This seems kind of grouchy I know, but I am getting a bit tired of these wildly overblown titles attached to very thin blog posts. I knew what I'd see when I clicked the link and was just as disappointed as I'd expected to be. I guess I have a masochistic streak. The actual stories of those three editors, their authors and how those stories intertwine would probably be pretty interesting. I guess I'll have to wait for This American Life to tackle it.
- there 15y agomaybe http://thisdeveloperslife.com/ http://thisdeveloperslife.com/ can do a show about it.
- acabal 15y agoSublimeText is great, but after using it for a few weeks I went back to Komodo Edit. The reason is because I do a lot of PHP work, and Komodo Edit by far has the best PHP autocomplete I've found. There's a plugin for SublimeText that supposedly imports the same autocomplete engine that Komodo uses. In my experience, however, it was slow, rarely worked right, and was actively broken for CSS autocompletes (which I also need frequently). So it's back to Komodo Edit for me, at least until SublimeText gets its autocomplete act together. Which is a shame because I really liked ST as an editor.
- raingrove 15y agoI must say I am really impressed by the speed and performance of SublimeText 2. If they can get the vintage mode (vim mode) right, I might really consider switching. At the moment it's nowhere near perfect.