Skip to content

Instantly share code, notes, and snippets.

@maxRN
Last active February 26, 2022 17:43
Show Gist options
  • Save maxRN/b638e829202a530b9f76008c3817ce36 to your computer and use it in GitHub Desktop.
Save maxRN/b638e829202a530b9f76008c3817ce36 to your computer and use it in GitHub Desktop.
edit file on server via ssh with (n)vim
vim scp://user@myserver[:port]//path/to/file.txt
# also works when you set a custom name in ~/.ssh/config;
# e.g. edit a file on raspberry pi
nvim scp://pi/pythonScripts/timetable.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment