Defx-sftp is a defx source for sftp.
- View and operate remote files via SFTP.
- Exchange files between remote and local.
For basic requirements, please follow the instruction of defx.nvim.
Additionally, defx-sftp requires paramiko.
You can install it with pip:
pip3 install --user paramiko
For now, defx-sftp only supports RSA authentication.
Private key path can be specified with g:defx_sftp#key_path
(default is ~/.ssh/id_rsa).
Remote files can be accessed like this.
Defx sftp://[user@]hostname[:port][/path]
Columns for sftp files is supported (sftp_mark
, sftp_time
, sftp_time
).
If you want to show the same columns as defx's one, you can configure like this and open with Defx sftp://user@hostname -buffer-name=sftp
.
call defx#custom#option('sftp', {
\ 'columns': 'sftp_mark:indent:icon:filename:type:sftp_time:sftp_size',
\ })