To get around this, try opening the file as follows: vim scp://remoteuser@server.tld//absolute/path/to/document Notice two things: 1.
* remoteuser@: This is used to specify the user name on the remote server. Without this, it will use the user's name on the local computer. Often that will come from the $USERNAME environment variable. If the user has the same name on the local computer and the remote server, this part is unnecessary. If you're unsure whether it's needed, use it just to be safe. 2.
* Double slashes ("//") between the hostname and file path: At least one slash is needed to separate the remote server's hostname from the file path. That slash is not included in the path used to reference the file on the remote server. If the path to the file is absolute, then it mu
Attributes | Values |
---|
rdfs:label
| - Editing remote files via scp in vim
|
rdfs:comment
| - To get around this, try opening the file as follows: vim scp://remoteuser@server.tld//absolute/path/to/document Notice two things: 1.
* remoteuser@: This is used to specify the user name on the remote server. Without this, it will use the user's name on the local computer. Often that will come from the $USERNAME environment variable. If the user has the same name on the local computer and the remote server, this part is unnecessary. If you're unsure whether it's needed, use it just to be safe. 2.
* Double slashes ("//") between the hostname and file path: At least one slash is needed to separate the remote server's hostname from the file path. That slash is not included in the path used to reference the file on the remote server. If the path to the file is absolute, then it mu
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| - Integration
- File Handling
|
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - To get around this, try opening the file as follows: vim scp://remoteuser@server.tld//absolute/path/to/document Notice two things: 1.
* remoteuser@: This is used to specify the user name on the remote server. Without this, it will use the user's name on the local computer. Often that will come from the $USERNAME environment variable. If the user has the same name on the local computer and the remote server, this part is unnecessary. If you're unsure whether it's needed, use it just to be safe. 2.
* Double slashes ("//") between the hostname and file path: At least one slash is needed to separate the remote server's hostname from the file path. That slash is not included in the path used to reference the file on the remote server. If the path to the file is absolute, then it must begin with a slash, giving two slashes between the hostname and file path as shown above. However, if the file to be edited is contained within the home directory of the remote user, a relative path may be used, which should not use a second slash. For example, if the absolute path to the file to be edited is /users/remoteuser/relative/path/to/document and the home directory for remoteuser is /users/remoteuser, then the following command will open that file: vim scp://remoteuser@server.tld/relative/path/to/document
|