ssh] Open remote machine’s files in Midnight Commander (MC) and Vim
Got into the habit of adding a passphrase to private
ssh commands will keep asking for it
solves this problem, and makes sure that passphrase
popups won’t interrupt.
cd to project
ssh-agent vim -S Session.vim
Continue with either Vim or Midnight Commander (or both)
scpin `Midnight Commander
As of version 4.8.23:
Right on the top menu
(press F9 if using mouse is not an option)
Type in the connection in the format
/ (instead of the
:) is crucial!
:h scp for more info (which is an alias to
:h Lexplore) because
it gives the layout I prefer (i.e., a fixed vertical
file browser on the left).
Whenever I select a file the Vim tab gets messed up
upon opening (e.g., the file browser split becomes
blank, the opened file’s lines show up funky), so
just press CTRL-L to redraw
the screen (see