Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch from vim to emacs mode in spacemacs

Tags:

spacemacs

When I first installed spacemacs it prompted me into deciding which mode I want it to be configured. I chose vim since I was already comfortable with it. But now I want to learn more about emacs shortcuts and keybindings. So I would like to get back to the emacs mode in spacemacs. How can I reconfigure my settings ?

like image 515
hadyfarhat Avatar asked Dec 21 '16 21:12

hadyfarhat


People also ask

What is Emacs Spacemacs?

Spacemacs is an open source editor that combines Emacs and Vim into a single editor. Effectively, Spacemacs is the best of both worlds to me. You can fly around code like Vim and drop into Emacs keybindings at the touch of a button.

Can Emacs be as fast as Vim?

Productivity and Editing SpeedFile editing is usually faster with Vim than with Emacs because of Vim's purposely speed-driven interface. For example, cursor movement can be controlled through the H, J, K, and L keys in the normal mode.

Why is Emacs better than Vim?

Emacs tends to be relatively straightforward, similar to commonly used text editors like Notepad. On the other hand, Vim is a power-user's tool, using keyboard shortcuts to speed up tasks. Vim is known to have a much steeper learning curve than Emacs.

How do I start Spacemacs?

Spacemacs is a beginner-friendly and powerful extension of a popular text editor called Emacs. To install Spacemacs you need to first install base Emacs and then download the Spacemacs extension files, which is most easily done by using a program called Git.


2 Answers

If you just want to toggle between emacs and vim mode, you can just use CTRL z. It works in both modes.

like image 52
Olivier Verdier Avatar answered Oct 14 '22 01:10

Olivier Verdier


in the configuration file, presumably ~/.spacemacs, alter the row

dotspacemacs-editing-style 'vim

to

dotspacemacs-editing-style 'emacs

like image 22
user Avatar answered Oct 13 '22 23:10

user