Vim, tmux and Emacs Shortcuts Compared: Learn One Through Another
Compare the essential keys of Vim, tmux and Emacs side by side: moving, searching, copying, splitting windows and macros, plus tips to learn them faster.

Vim, tmux and Emacs Shortcuts Compared
Vim and Emacs are the two great keyboard-driven editors, and tmux is the terminal multiplexer many developers run them inside. Each rewards the time you invest, but their shortcuts are dense and switching between them scrambles muscle memory. The free Vim, tmux and Emacs Keys reference puts thirty common tasks side by side so you can look up a task in one tool, or learn a new tool through the one you already know. This guide explains the notation and the ideas behind each tool.
Three different models
Vim is modal. Normal mode is for moving and editing with commands; insert mode is for typing text; visual mode is for selecting; command-line mode (starting with a colon) is for commands such as :w to save. Commands combine: d means delete and w means word, so dw deletes a word, d$ deletes to the end of the line and 3dd deletes three lines.
Emacs uses chords. Text is always typed directly, and commands use Ctrl (written C-) and Meta (written M-, usually Alt). C-x C-s saves, C-s searches, M-% replaces. Prefix keys such as C-x start longer sequences.
tmux uses a prefix. Press the prefix, Ctrl+b by default (many people change it to Ctrl+a), release it, then press the command key: prefix % splits vertically, prefix c opens a new window, prefix d detaches the session so it keeps running after you disconnect.
Tasks everyone needs
- Save and quit: :w and :q in Vim (:q! discards changes, :wq saves and quits), C-x C-s and C-x C-c in Emacs, prefix d to detach in tmux.
- Search: /text then n in Vim; C-s in Emacs; copy mode plus / in tmux.
- Search and replace: :%s/old/new/gc in Vim asks before each change; M-% in Emacs does the same.
- Copy and paste: yy and p in Vim; M-w and C-y in Emacs; prefix [ to enter copy mode and prefix ] to paste in tmux.
- Split the screen: :split and :vsplit; C-x 2 and C-x 3; prefix " and prefix %.
- Move between splits: Ctrl+w then a direction; C-x o; prefix and an arrow key.
Clipboards do not match
Each tool has its own copy buffer. Vim uses registers, and "+y copies to the system clipboard if Vim was built with clipboard support. Emacs uses the kill ring, and M-y after C-y cycles through earlier copies. tmux has paste buffers. Plugins and settings can connect them to the system clipboard, but out of the box they are separate, which explains many "my paste does not work" moments.
Macros and repetition
Repetition is where these tools shine. In Vim, the dot command repeats the last change, and qa … q records a macro into register a that @a replays, so a change made once can be applied to a hundred lines. Emacs records with F3, stops with F4 and replays with F4, and C-x z repeats the last command.
Learning faster
- Run vimtutor for a 30-minute Vim lesson, or press C-h t for the Emacs tutorial.
- Learn a few commands at a time and use them deliberately for a week before adding more.
- In tmux, prefix ? lists every binding in your current setup.
- Use the reference's one-tool view to make a short personal list of the keys you are learning.
Settings in the reference
Choose all three columns or one tool only, and set the tmux prefix so the table matches your configuration. The choices are remembered on this device. Defaults are shown; your own configuration and plugins, such as Evil mode in Emacs or vim-tmux-navigator, may change some keys.



