commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
notice the double slash
There are 3 alternatives - vote for the best!
If you are running sshd on different port use above this command to edit/view remote file with vi/vim.
In above example I am using port 12345.
vim can open ssh/sftp and ftp connections for file editing using 'netrw'. If no path or file is provided vim opens the directory as a filelist.
See: :help netrw.
If you can do better, submit your command here.
You must be signed in to comment.