diff --git a/ssh-for-agents.html b/ssh-for-agents.html index 5492747..b651978 100644 --- a/ssh-for-agents.html +++ b/ssh-for-agents.html @@ -160,6 +160,7 @@
Pro Tip: Enable mouse support in MC by pressing F9 → Options → Display → check "Mouse support". Now you can click to navigate, select files, and press function keys with your mouse — a full GUI feel over SSH.
+ +Vim is the default terminal editor on virtually every Linux system — including your agent. It's lightweight, runs entirely in the terminal, and once you learn the basics, it's the fastest way to edit configs, write scripts, or inspect log files on your agent.
+ +vim /path/to/file
+ If the file exists, Vim opens it for editing. If it doesn't, Vim creates a new file when you save.
+ +Vim has several modes. You'll spend most of your time in two of them:
+Esc to return here from any other mode.i to enter Insert mode at the cursor position. Press Esc to leave.search-termold with new in the entire fileIf you just want to read a file — logs, configs, output — without risking accidental edits:
+view /path/to/file
+ This opens Vim in read-only mode. You can navigate with all the same keys (j, k, gg, G, /search) but you can't make changes. Press :q to exit.
Pro Tip: Run vimtutor on your agent for an interactive 30-minute tutorial that teaches Vim hands-on. It's installed by default and walks you through every command at your own pace.