Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
Linux

Vim or Emacs on a server: how they differ, how to choose

Vim, Neovim or Emacs for server work in 2026: what is installed by default, editing remote files over SSH, configs that travel and a fair way to choose.

CloudSat teamNovember 18, 20266 min read
Two glowing terminal windows facing each other across a chessboard made of keyboard keys
On this pageTwo families, briefly

On your own workstation, picking an editor is a matter of taste. On a server, it becomes practical: what is already installed, what works over a slow SSH connection, and how much configuration you can carry around. The decades-old rivalry between Vim and Emacs matters less than those three questions, and the answer is often "both, for different jobs."

Two families, briefly

vi and Vim. vi dates from 1976. Vim, "Vi IMproved," appeared in 1991 and became the standard vi on Linux. After its creator, Bram Moolenaar, died in 2023, a team of maintainers took over; Vim 9.2 was released in February 2026. Vim is modal: you switch between inserting text and issuing commands, which makes editing a sequence of short, composable keystrokes. It uses the Vim license, a charityware license compatible with the GPL.

Neovim is a Vim fork started in 2014. It keeps Vim's editing model and adds Lua configuration, a built-in language server client and an embeddable architecture. Version 0.12, released in March 2026, added a built-in plugin manager. New code is under the Apache 2.0 license, with inherited Vim code under the Vim license.

GNU Emacs dates from 1985 and is less an editor than a programmable environment: nearly everything is written in Emacs Lisp and can be changed at runtime. It is not modal by default and leans on key chords such as C-x C-s to save. Emacs 31.1 shipped in August 2026, with terminal mouse support turned on by default. It is licensed under GPLv3 or later.

What a fresh server already has

This is where the two diverge sharply. POSIX requires vi, so nearly every Unix-like system ships some version of it, while Emacs is almost never installed by default.

System Editor available out of the box
Debian vim-tiny, plus nano
Fedora, RHEL, Rocky Linux, AlmaLinux vim-minimal
Alpine Linux BusyBox vi
Minimal container images Often no editor at all
Rescue and recovery shells Usually some vi

The consequence is simple: basic vi skills pay off on any machine you will ever SSH into, including ones you did not set up. Whatever your main editor, learn enough vi to survive.

Install the full versions

Distribution packages lag behind upstream releases, but they are tested and patched. Terminal-only Emacs builds avoid pulling in graphical libraries:

sudo apt install vim          # Debian, Ubuntu
sudo apt install neovim
sudo apt install emacs-nox

sudo dnf install vim-enhanced # Fedora; neovim comes from EPEL on RHEL-family systems
sudo dnf install neovim
sudo dnf install emacs-nox

Edit remote files from your own machine

Both editors can edit files on a server while running on your workstation, with your full configuration and plugins. Only the file travels.

In Emacs, TRAMP is built in. Open a remote path with C-x C-f:

/ssh:deploy@web-01:/srv/app/.env
/ssh:deploy@web-01|sudo:web-01:/etc/nginx/nginx.conf

The second form connects as deploy, then uses sudo on the server to edit a root-owned file. Dired, grep and compilation buffers work on remote directories too.

In Vim and Neovim, the bundled netrw plugin opens files over SCP:

vim scp://deploy@web-01//etc/nginx/nginx.conf   # two slashes: absolute path
vim scp://deploy@web-01/notes.txt               # one slash: relative to home

Writing the buffer copies the file back. For root-owned files, edit a copy and move it into place, or simply open an SSH session and use the server's own vi. If you prefer a graphical editor, VS Code's Remote SSH extension does the same job with a different philosophy: it installs a small server process on the remote machine.

Keep server configs small

Heavy setups such as Doom Emacs, Spacemacs or a LazyVim configuration belong on your workstation. On servers, a dozen lines you can paste anywhere beat a framework you have to install. A portable ~/.vimrc:

set nocompatible
syntax on
filetype plugin indent on
set number
set expandtab shiftwidth=4 tabstop=4
set incsearch hlsearch ignorecase smartcase
set backspace=indent,eol,start

For Emacs, start with emacs -nw -Q, which opens in the terminal without any configuration, and add only what you miss. Keeping configuration light also keeps startup fast on small servers, where a few hundred milliseconds per launch add up.

Survive dropped connections

An SSH session that drops mid-edit takes the editor with it, along with unsaved changes. Run long editing sessions inside a terminal multiplexer such as tmux, and the editor keeps running on the server when your connection does not:

tmux new -s edit        # start a named session, then open your editor inside it
tmux attach -t edit     # reconnect later, exactly where you left off

Detach on purpose with Ctrl-b then d. Emacs offers a variation of the same idea: start it once with emacs --daemon, then open files instantly with emacsclient -t, and every buffer stays alive between connections as long as the daemon runs.

The vi survival kit

Even committed Emacs users end up in vi during a rescue. Ten commands cover nearly every emergency edit:

Keys Action
i Insert text before the cursor
Esc Back to command mode
:w Save
:q! Quit without saving
:wq or ZZ Save and quit
/word then n Search, then jump to the next match
dd Delete the current line
u Undo
x Delete one character
:%s/old/new/g Replace every occurrence in the file

Three questions to choose

  1. Do you want an editor or an environment? Vim and Neovim are editors that do one thing extremely well. Emacs can become your Git client (Magit), task manager (Org mode), mail reader and terminal, all scripted in one language.
  2. Where will you edit? If you mostly edit directly on servers, vi skills are mandatory and Vim feels at home everywhere. If you edit from your workstation, TRAMP makes Emacs just as effective on remote files.
  3. Which extension language would you rather write? Vim9 script for Vim, Lua for Neovim, Emacs Lisp for Emacs. You will write some, eventually.

There is also a middle path: Evil mode gives Emacs a faithful Vim editing layer, so you can have Vim keystrokes and the Emacs environment at once.

To practice without risk, spin up a throwaway Cloud VPS, which bills by the hour, break its configuration files and fix them using nothing but vi.

FAQ

Is Neovim replacing Vim?

No. Both are actively developed, with Vim 9.2 and Neovim 0.12 released in 2026. Neovim attracts users who want Lua and built-in language server support; Vim keeps its focus on stability and compatibility.

Do Emacs keybindings help in the shell?

Yes. Bash's line editor uses Emacs-style keys by default: Ctrl-A jumps to the start of the line, Ctrl-E to the end, Ctrl-R searches history. Vim users can switch the shell to modal editing with set -o vi.

Is nano good enough for servers?

For quick configuration edits, yes, and it is the default editor on many distributions. Its limits show on larger changes, such as editing many lines at once or working across several files.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.