The text editor challenge: Sublime Text vs Vim
In a battle of the text editors, Adam Simpson pits the popular Sublime Text against the ever-enduring Vim.
Sublime Text might be the most popular editor among frontend developers at the moment. It's a fantastic tool that delivers a fast editor, awesome expandability and rock-solid stability.
Enhance your site with these 60 brillant WordPress tutorials
We wanted to know if Sublime Text is the best though. So we pitted it against Vim. Vim is an ancient editor that continues to thrive, featuring an incredibly advanced movements system, unparalleled adaptability, a rich macro system, and a modal system that allows mouse-free control.
Grok-ability
Sublime provides a straightforward UI: project tree on the left, tabs across the top. Since it's modelled after TextMate's UI and key commands, it provides a familiar experience to users from the first time they open up the app.
This is Vim's weakest point: there is no shallow end. Vim follows the Unix philosophy of only doing one thing well, so it doesn't come with silly things like sidebars. Resources like Vimcasts and Vimbits assist in acclimatising to Vim.
Plugins
Expandability is a major part of a good text editor, and Sublime is no slouch with an ever-growing, already massive plugin community. Through a simple plugin, you can add any feature you might want to your editor. Package Control offers additional value by making plugin installation incredibly easy.
You can add project trees and other things to Vim via plugins. Use Vundle or Pathogen to install and manage plugins à la Sublime's Package Control. Vim Awesome is a great resource for finding new plugins.
Speed
One of Sublime's most buzzed-about features upon its release was speed, and that buzz is deserved. Churning through JavaScript files in your latest web app is hardly even a challenge.
Vim is fast, and its speed is easily managed. Though I've never needed it, you can simply comment out some of the plugins in your .vimrc to make your Vim even speedier.
Can I bend it to my will?
The ultimate question. Sublime's extensive plugin support and fairly minimal UI make it an application that a developer can manipulate to their liking. Projects like MarkdownEditing easily demonstrate this malleability.
Vim's appeal is its depth. In my opinion, it's the quintessential onion application, with layers and layers of functionality just waiting to be peeled back. Each layer reveals more ways to accomplish any task.
Verdict
Both editors are superb. Sublime offers a stable and familiar, yet fairly deep, tool that will serve faithfully for years of development.
Vim offers unparalleled depth and efficiency while sacrificing some of the glitz (such as a GUI) other apps enjoy. In the end, both get the job done and fit a multitude of workflows without sacrificing performance or stability. Regardless of which editor you choose, it's up to the individual to make the most of it.
Words: Adam Simpson
Adam Simpson is a frontend developer at Sparkbox. Follow him on Twitter at @a_simpson. This article first appeared in issue 261 of net magazine.
- The 15 best photo editors
- How design can make a website feel faster
- The designer's guide to working from home
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try first month for just £1 / $1 / €1
Get top Black Friday deals sent straight to your inbox: Sign up now!
We curate the best offers on creative kit and give our expert recommendations to save you time this Black Friday. Upgrade your setup for less with Creative Bloq.
The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.