# 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. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/devops/editors-terminal
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/devops/linux-basics)

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

- [Vim documentation](https://www.vim.org/docs.php) (vim.org)
- [tmux wiki](https://github.com/tmux/tmux/wiki) (GitHub)

Previous: [Text Wrangling: grep, sed, awk and Friends](https://www.internhack.in/roadmaps/tracks/devops/text-processing) · Next: [How the Internet Works: TCP/IP and the OSI Model](https://www.internhack.in/roadmaps/tracks/devops/internet-tcpip)

## More in Shell Scripting and Terminal Craft

- [Shell Scripting for Ops](https://www.internhack.in/roadmaps/tracks/devops/shell-scripting)
- [Text Wrangling: grep, sed, awk and Friends](https://www.internhack.in/roadmaps/tracks/devops/text-processing)
- [Editors and Terminal Productivity](https://www.internhack.in/roadmaps/tracks/devops/editors-terminal)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [DevOps Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/devops)
