Evil for Vim Style Editingλ︎
Evil (extensible vi layer for Emacs) provides multiple editing states, multi-modal editing, simplifying keybindings by reducing the need for simultaneous key presses.
Spacemacs provides Evil editing states and simplified keybindings throughout all layers and major modes.
- normal - for manipulating and navigating existing text (default state)
- insert - for writing new text
- visual - for selecting blocks of text
- iedit - edit multiple regions simultaneously
- lisp - structural editing for Clojure & Lisp style languages (e.g. slurp, barf)
First get familiar with normal, insert and visual states. Then when you are comfortable, move on to iedit and lisp states.
Normal state by default
Evil normal state should be considered the default state as it is where you should be most of the time, unless writing lots of new code or text.
Practice pressing Esc (or fd
combo) after adding text until it becomes a natural reaction.
Learn Vim-style editingλ︎
Vim-style editing is arguably the most effective way to work with text, supporting changes as much through text manipulation as editing text. Once practised, vim-style editing is far faster than uni-mode editing.
The recommended way to learn vim style editing is to practice and ideally use it for everything you do.
Space h T v starts the build in Vim tutorial. This provides the basic movement of vim and provides an interactive way to practice your skills
To help make Vim style editing become a sub-conscious act you should learn to speak Evil
NOTE:
Vim Adventures is a web-based commericial game that provides an interactive way to practise Vim. First levels are free.
Learning resource for Evilλ︎
Spacemacs: Migrating from Vim
Spacemacs Vim Cheatsheet
Graphical Cheatsheet Tutorial
Vim quick reference guide
Vim Casts
Editing as a power user - Vim to Spacemacs
Vim versus Spacemacs
A focused on learning Vim and understanding why its so powerful. Transcript and exercises are also available.