

This setup makes navigating any text field faster in tools such as browsers and Google Docs. Note: Whether you use capital or lowercase letters does not matter in this case. As an Apple addict, many of the Emacs keyboard shortcuts come out-of-the-box with macOS, such as: Key comboĭelete the rest of the current line starting from the cursor.

In my experience, Emacs resembles editors like Microsoft Word and Google Docs more than Vim because of its modelessness, and this fact may make it easier to get used to than Vim.Īs noted in the Wikipedia editor war article, the "non-modal nature of Emacs keybindings makes it practical to OS-wide keybindings." This sentiment summaries the biggest reason that I choose Emacs over Vim. Because Emacs is modeless, its keyboard commands often start with the Ctrl key or the Meta key (which can be Esc or Opt if configured in your macOS terminal preferences), so that the system can distinguish actual edits from commands. One of the most notable differences between is two editors is that, unlike Emacs, Vim has two modes: Insert mode (where you can edit the file and cannot enter commands) and Command mode (where you can only enter commands and the file is read-only). There’s a dedicated Wikipedia page with a summary of the differences and pros vs. cons to help you decide what side of the editor war between Vim and Emacs you’re on. If you are new to text editing, you may wonder if you should go with Emacs or Vim, since remembering all of the commands for either can involve a significant investment of muscle memory.
#EMACS FOR MAC COMMAND LINE HOW TO#
If you want to know why you should learn Emacs and how to get started, please keep reading. As a (less popular) cousin of Vim, Emacs also offers powerful capabilities with easy-to-install language support, and can even help you navigate faster in macOS with the same keybindings. Emacs is a text editing tool that comes out-of-the-box with Linux and macOS.
