Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Is it possible to create a project based on a remote directory (on an ftp server) in VIM, using the Project plugin?
It's not true that vim doesn't have internal capabilities to open remote files. The first poster was correct, netrw is built into later versions of vim and it's awesome. I use it all the time to edit pages on website via ftp and sometimes over ssh.
Try:
:e ftp://user#machine/path
I seem to remember creating a .netrc file so that I didn't have to type in my user/pass all the time.
man ftp (and search for .netrc assuming you're using vim on unix and not windows)
Check out the netrw plugin. However, in general I've found development easier when files are local and I have a good revision control system (like git) to move files to and from the server.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I need to access a server using an FTP client in passive mode, but how do I do this for Vim FTP
connections?
Running ftp -p 12.34.56.67 works fine, but how do I do this when starting vim (for ex. vim ftp://12.34.56.78/)?
This article states that you need to add this line to your .vimrc:
let g:netrw_ftp_cmd="ftp -p"
After that, according to this article, you should be able to do:
vim ftp://username#yourdomain.com//the/path/to/yourfile.php
This seems to be a native Vim function.
Note: This option should be turned off for FTP servers that are not passive.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I recently acquired a project from a former colleague, but the only information he gave me was the SSH key for a server and a bitbucket repository. I need to access the FTP of the server so I can change the files of the website.
I have zero experience with SSH or console commands. I have the repository but I don't know how to upload it. A friend of mine said that it's possible to pull a repo to the server, but I don't know how to even transcend in the folders of the server. I have just the console.
It says that the server's image is - ubuntu-1604-xenial-v20180127
And these are the only options I have - http://prntscr.com/p31inf
Also note that the website is running on Magento and I have no idea how it works. I'm a wordpress developer.
What you want is sftp: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
So just use a ftp-client like filezilla and select sftp as protocol
Btw, magento is a little bit different than wordpress. Good luck ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to copy a configuration file from one linux account to another account. Since I do not have the permission I couldn't scp. So, how to yang and put the entire file across the accounts? File has 100s of lines so, it is not possible to copy, paste by mouse. I'm using putty.
If you can use PuTTY then you can use scp - both use the SSH protocol and require a user login.
Since you are comfortable using PuTTY, try using PSCP, which implements the scp linux command with a GUI. Use the same credentials as you do for PuTTY.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I'm editing files on a shared machine. How do I configure vim for me, while allowing other users their configuration (which may be 'unconfigured')?
(edit, should have noted this initially:) Unfortunately we all have to use the same login ID so config file in home directory isn't a solution for me. Is there an environment variable I could set manually after login to tell vim where to load "my" config?
Your configurations are in your ~/.vimrc in your home folder. Your settings are therefore unique to your username. You should have no problem with others on the machine.
EDIT: Since you can't use a home folder (why again?), you can launch vim with a custom configuration script with the following:
vim -u custom.vimrc
If you have a .bash_profile or something similar, you can alias this to your own custom vim.
alias vime='vim -u custom.vimrc'
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
In Windows, if I am on the command prompt (cmd), if I write the command
explorer .
It will open Windows Explorer with the current directory. Is there anything similar I can do with Linux?
xdg-open . opens with the default file explorer.
More information is here.
xdg-open uses data from
~/.local/share/applications/mimeapps.list
(in most cases) to find the correct application.
The MIME type for a directory is inode/directory from here.
On Ubuntu:
nautilus . # For the current folder
nautilus /home/ # Opens the home folder
If you do not have it, just install this by
apt-get install nautilus
Then use the above command to explore the directory.
It depends what file manager you have, but yes, you can.
For instance, type xfe, or dolphin, or gentoo, etc.
Type the name of the binary of the tool you want to open.