Vim: Edit files on FTP server over Passive (PASV) mode [closed] - vim

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.

Related

How to parse lines from a file on a FTP server without downloading it [closed]

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 2 years ago.
Improve this question
I want to parse a line from large files on a FTP server without downloading them, using Linux command line.
Something like this comes to mind:
wget <ftp_file> | grep <something_from_a_line>
Is there a way to do this?
Reading a remote file from a client machine implies that you download it (explicitly or implicitly). Otherwise you must find some way to connect onto the server and read the file locally on the server.

Installing a script file in 1200 Linux servers [closed]

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 4 years ago.
Improve this question
I need put a script file and a line in crontab in 1200 Linux servers.
How could I do this task automatically ?
Many many options!
write a script that connects via SSH to each of those servers, and have it create your script file & modify crontab!
use Ansible!
use SaltStack!
use < some other configuration management framework >!
Seriously though, are you suggesting you are in charge of 1200 servers and the usual procedure of doing, well, anything is by hand? Flabbergasting!

How to copy and paste an entire file across different Linux accounts? [closed]

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.

p4v automatically sync to head on start-up [closed]

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
Is there a way I can configure my p4v installation on windows to automatically sync all the files in my client to latest revision whenever I launch the viewer?
I am asking this because I do not want to worry about syncing to "head" every time I want to open a file using p4v.
You can select the "Automatically get all revisions" option on the workspace in question. From p4v edit the workspace, it is on the basic tab at the bottom.

vim - config for me with multiple users on same machine [closed]

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'

Resources