Editors and Terminal Productivity

Be able to edit files on any server with a terminal editor, and multiply your speed with multiplexers, SSH config and good dotfiles.

Beginner · about 4 hours · difficulty 1/5

Learn first: Linux Command Line and Packages

You will regularly edit files on machines with nothing but a terminal. Being comfortable in at least one terminal editor, and knowing how to keep sessions alive, removes a lot of friction.

Editors

  • Vim (or Neovim) is on nearly every server. Learn modes, :w, :q!, search /, replace :%s/a/b/g, and basic motions. You do not need a heavy plugin setup.
  • nano is fine for quick edits if Vim feels heavy.
  • On your laptop, VS Code with Remote-SSH, YAML, Docker and Terraform extensions is a strong daily driver.

Terminal workflow

  • tmux (or screen) keeps sessions running when your SSH connection drops and lets you split panes to tail logs while editing.
  • Shell history search (Ctrl+R), aliases, and a prompt that shows git branch and Kubernetes context.
  • Tools that pay off: fzf, bat, htop, watch, ncdu.
  • Keep your dotfiles in a git repo so any new machine feels like home.

Pitfalls

Long-running operations in a plain SSH session (use tmux), and a prompt that hides which production context you are in.

Good enough to move on: you can open, edit, search-replace and save a file in Vim without panic, and keep a long job running across a dropped connection with tmux.

Key concepts

  • Vim essentials
  • nano
  • VS Code Remote-SSH
  • tmux sessions and panes
  • History search and aliases
  • Dotfiles in git
  • fzf and modern CLI tools

Mini project

Create a dotfiles repo with your shell aliases, a tmux config and a minimal vimrc, plus an install script that symlinks them, and use it to set up a fresh VM.

Check yourself

Your SSH connection drops during a 40 minute database migration. How would you have prevented losing it?

Free resources