Last active
February 26, 2022 17:43
-
-
Save maxRN/b638e829202a530b9f76008c3817ce36 to your computer and use it in GitHub Desktop.
edit file on server via ssh with (n)vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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