假設我想提示時訪問此遠程文件在vim如何在vim中重置ftp密碼?
ftp://[email protected]//home/amr/bin/dr_snapshot.py
,並且,我不小心輸入了錯誤的密碼。
如何重設密碼?現在我必須退出並重新啓動vim。
客戶端和服務器都在Linux上。
謝謝。
假設我想提示時訪問此遠程文件在vim如何在vim中重置ftp密碼?
ftp://[email protected]//home/amr/bin/dr_snapshot.py
,並且,我不小心輸入了錯誤的密碼。
如何重設密碼?現在我必須退出並重新啓動vim。
客戶端和服務器都在Linux上。
謝謝。
:help netrw-userpass
Attempts to use ftp will prompt you for a user-id and a password. These will be saved in global variables |g:netrw_uid| and |s:netrw_passwd|; subsequent use of ftp will re-use those two strings, thereby simplifying use of ftp. However, if you need to use a different user id and/or password, you'll want to call |NetUserPass()| first.
即用途:
:call NetUserPass() -- prompts for uid and password
PS。
vim帶有驚人的幫助系統。在這種情況下,我做了 ,做了一個搜索password
和第一擊是本節:
腳本試圖獲得無形使用FTP密碼| inputsecret()|, 一個內置在Vim函數中。見| netrw-userpass |在設置後如何更改密碼 。
這給了NETRW,爲userpass進入
BTW如果你輸了,做一個:h <SOME_STRING>
,然後按CTRL-d和VIM顯示與包含字符串的所有部分的列表。 ..
至少在我使用的vim版本中(7.3),該命令可以簡化爲:NetUserPass,而不是打擾電話。 – Mjiig 2012-08-13 13:43:23
除了重新啓動VIM,我認爲這是一個很好的問題。 :) – Almo 2012-08-13 13:23:17
好評;我已經編輯來反映它。 – octopusgrabbus 2012-08-13 13:30:28