4 ms·
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.
by clinta 7y ago
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.
- lunchables 7y agoThe 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
- clinta 7y agoI'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.
- kqr 7y agoThis 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.