News for hackers. Stuff that matters.
Re:History and Effective Use of Vim by carterehsmith on Friday July 19, 2019 @06:12PM (#20482868)
Nah, I've seen people downloading their preferred configs right to the production server, because they, understandably, feel more comfy with that.

But, it may not be for everyone.

Where I work, we are in the process of reaching some compliance targets, and all this downloading unknown stuff from unknown servers is out the window. For the best, I think.

Re:History and Effective Use of Vim by michaelmrose on Saturday July 20, 2019 @04:13AM (#20484698)
How much editing do people need to do on the production server in the context of developing software?

Incidentally one can mount a remote filesystem via ssh and edit the files as if they were local with any editor.

With Emacs you can skip a step and directly point your editor to the remote file via tramp.

Re:History and Effective Use of Vim by clinta on Friday July 19, 2019 @11:07PM (#20483957)
People need to stop editing directly on servers. Vim's netrw can write out over scp, use your configured vim on your desktop to edit the files on the server.
Re:History and Effective Use of Vim by lunchables on Saturday July 20, 2019 @09:31AM (#20485628)
The problem is browsing files, for me. I can't use fzf, nerdtree, nnn.vim, whatever. I much prefer sshfs and treating the remote file system like a local one.

But I'm not really familiar with netrw other than just:

:e scp://host/path/file

Re:History and Effective Use of Vim by kqr on Saturday July 20, 2019 @03:16PM (#20487708)
This is one of the reasons my preferred implementation of Vi is Evil -- the TRAMP network layer in Emacs does exactly what you want: let you treat any remote file system as local. It even does multi-hop access through e.g. bastion machines. It is great.
Re:History and Effective Use of Vim by clinta on Saturday July 20, 2019 @02:57PM (#20487628)
I've never used any of those plugins, but the built in netrw has a directory browser that works.

On vanilla vim if you :e scp://host// you should get the built in netrw browser working over scp.

Re:History and Effective Use of Vim by trcollinson on Friday July 19, 2019 @11:04PM (#20483949)
It's unfortunate that in this day and age we still have people who directly access and touch a production server at all, ever. There is zero need.
Re:History and Effective Use of Vim by alasdair_ on Friday July 19, 2019 @11:20PM (#20483999)
This sounds nice until you have to debug a crazy error that only happens in production.
Re:History and Effective Use of Vim by michaelmrose on Saturday July 20, 2019 @04:24AM (#20484722)
Wouldn't this represent 0.1% of your usage? Meanwhile the thinking portion is 99% of the job and the act of using the UI to enact the changes on any editor is the other 1%.

Making 1% of 1/10 of 1% more effecient seems like a curious optimization.

Re:History and Effective Use of Vim by trcollinson on Saturday July 20, 2019 @02:00PM (#20487286)
Honestly, if you have to hop on production to debug a crazy error, you have two bugs. The infrastructure being so different on production compared to development or local is a fixable issue. As are any other differences between production and local that make difficult to debug in these special cases. It takes a long time. It's a substantial effort. But it is worth while.
Re:History and Effective Use of Vim by airnomad on Saturday July 20, 2019 @04:10AM (#20484687)
You're quite green, aren't you?
Re:History and Effective Use of Vim by trcollinson on Saturday July 20, 2019 @02:03PM (#20487305)
It may seem that way, but no I've crossed that chasm long ago. I've debugged on production more than I would ever care to remember. But in all honesty it is easier than ever to stay completely off of production. It's also extremely cost effective. It's not simple and it is work, but it has never been easier to actually be successful at staying off if production.
Re:History and Effective Use of Vim by airnomad on Saturday July 20, 2019 @05:18PM (#20488443)
Easier then ever maybe but still probably impossible to avoid. It's not that anyone wants to mess up with live, it's more like you don't have a choice.
Re:History and Effective Use of Vim by trcollinson on Saturday July 20, 2019 @07:36PM (#20488970)
Really? I haven't allowed people to log directly only a production environment in almost 10 years. There is definitely a choice.