![terminal text editor mac terminal text editor mac](https://www.howtogeek.com/thumbcache/2/200/37784f588ba3eb93f5532f32d7d3a78d/wp-content/uploads/2012/01/vi-header.png)
For general-purpose work, it’s easiest to use one of the text editors included with macOS. To edit a plain text file in Terminal, you can use a command-line text editor. It has all the features needed by hardcore developers to carry out operations in specific columns in a CSV, or in a server admin for scriptwriting. This tool can be regarded as a lightweight version of BBEdit, also designed by Bare Bones. We'll configure Sublime more in the next few sections. Use command-line text editors in Terminal on Mac. TextWrangler Developed by Bare Bones, TextWrangler is another best text editor on macOS 10.14. Now you can open a file with $ subl myfile.py or start a new project in the current directory with $ subl. Let's create a shortcut so we can launch Sublime Text from the command-line: $ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl If you can afford it, It is adviced that you support this awesome tool. Anyhow, we're going to be using it so much that even the seemingly expensive $60 price tag is worth every penny. Sublime Text is not free, but it has an unlimited "evaluation period". To do so, right-click on the running application and select Options > Keep in Dock. Note: At this point I'm going to create a shorcut on the OS X Dock for both for Sublime Text and iTerm. dmg file, drag-and-drop in the Applications folder, you know the drill now. Powerful and customizable text editor with support for a huge list of programming languages and developed as open source. Everyone has their preferences, but unless you're a hardcore Vim) user, a lot of people are going to tell you that Sublime Text is currently the best one out there. With the terminal, the text editor is a developer's most important tool.