swap file "*.swp" already exists!的解決方法
Linux下程式設計難免會開啟多次vim編輯, 同一個檔案如果在上一次編輯時未進行儲存,則在下一次想要進行編輯時就會出現:
swap file "*.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
原因:
使用vim編輯檔案實際是先copy一份臨時檔案並對映到記憶體給你編輯, 編輯的是臨時檔案, 當執行:w後才儲存臨時檔案到原檔案,執行:q後才刪除臨時檔案。
每次啟動編輯時都會檢索這個檔案是否已經存在臨時檔案, 有則詢問如何處理,就會出現如上情景。
解決方法(刪除這個臨時檔案即可):
rm *.swp
相關推薦
swap file "*.swp" already exists問題解決!!!
vimLinux下編程難免會開啟多次vim編輯, 同一個文件如果在上一次編輯時未進行保存,則在下一次想要進行編輯時就會出現: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)e
swap file "*.swp" already exists!的解決方法
Linux下程式設計難免會開啟多次vim編輯, 同一個檔案如果在上一次編輯時未進行儲存,則在下一次想要進行編輯時就會出現: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)ele
Git-解釋“Swap file .MERGE_MSG.swp already exists”的問題
ref read get swap tar HR AD wap AR 當合並代碼時非正常保存退出遇到的問題。 博客原文: https://blog.csdn.net/qq_32452623/article/details/78395832Git-解釋“Swap file .
編輯文件警告Swap file “apiserver.swp…” already exists!
test xml文件 col swap file exist server lan com 同時 Linux下多個用戶同時編輯一個文件,或編輯時非正常關閉,再下次編輯打開文件時均為顯示如下警告信息: Swap file ".apiserver.swp" already ex
error: C++ preprocessor "/lib/cpp" fails sanity check錯誤解決方法
ubunt essential header apt yum 運行命令 process all sso error: C++ preprocessor "/lib/cpp" fails sanity check 問題的解決 問題的根源是缺少必要的C++庫。如果是CentO
linux下安裝libcurl過程及開發遇到的問題"curl/curl.h:沒有那個檔案或目錄"缺少標頭檔案解決方法
可以從官網上下載https://curl.haxx.se/download.html,也可以命令列下載 我是從官網看的版本,複製連結,再在命令列下載 # wget https://curl.haxx.se/download/curl-7.51.0.tar.gz # tar -zvxf curl-7.
haoxin is not in the sudoers file. This incident will be reported 解決方法
alt src family nbsp font ges 添加 repo 技術 編輯文件/etc/sudoers 文件,在該文件裏面找到 然後在這一行下面添加 haoxin ALL=(ALL) ALL haoxin is not in the sud
Linux執行.sh文件,提示No such file or directory的問題的解決方法
感謝 文件格式 很多 兼容 dir shell nbsp www window平臺 Linux執行.sh文件,提示No such file or directory的問題在window平臺下,寫好shell腳本文件,遷移到linux平臺,賦過可執行權限,執行該sh文件,卻提
Postman圖片上傳用法以及Required request part 'file' is not present的解決方法
程式碼截圖: Postman用法截圖: 後面兩個Pre_requestScript,Tests都不填。 注: 問題: 報錯:400,Required request p
Linux執行.sh檔案,提示No such file or directory的問題的解決方法
今天遇到了個奇怪的問題,就是再linux中執行shell 死活載入不到/etc/profile 直接執行source /etc/profile 沒問題 但是在shell中執行就不行 查詢
Trying to set the device owner, but device owner is already set.解決方法
在測試CTS Verifier 中Device Owner Test 的時候報錯: $ adb shell dpm set-device-owner 'com.android.cts.emptydeviceowner/.EmptyDeviceAdmin' $ adb shell dpm
No row with the given identifier exists 解決方法(集錦)
No row with the given identifier exists 解決方法 出現異常org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with
MySQL下“Can’t create/write to file xxx (Errcode: 13)”錯誤的解決方法
最近碰到一個 MySQL不能建立臨時檔案的錯誤,解決過程中學到一些知識,這裡分享一下,希望對碰到類似問題的同學有所幫助~ 關於MySQL臨時檔案: 1、MySQL使用環境變數TMPDIR的值作為儲存臨時檔案的目錄的路徑名。如果未設定TMPDIR,MySQL將 使
關於Warning: 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/' already的解決方法
安裝深度學習框架時,安裝:http://blog.csdn.net/youmy1111/article/details/51337054 來安裝的,由於之前安裝過Anaconda3,min
No row with the given identifier exists 解決方法
今天學下做專案,遇到 記下來,以供參考 具體解決辦法是,當報 No row with the given identifier exists錯誤的時候會跟有一個(#???)的東西,這就是你出錯的
【Android studio 解決過的問題】 Not a PNG file,Some file crunching failed等一些問題解決方法
① AAPT err(Facade for ): libpng error: Not a PNG file ② Some file crunching failed,see logs for details 從Eclipse專案轉到 Android studio之後 出
eclipse提示class file editor source not found的解決方法
在eclipse裡匯入了專案,但是最後執行時報jar包裡某個用到類不存在。點選“ctrl”+類名,發現eclipse提示class file editor source not found。 原因分析
cannot find crt1.o No such file or directory的一種解決方法
最近在嵌入式系統上裝jpeg的庫,下載了jpegsrc.v8b.tar.gz,解壓後./configure,此時我配置的是--host=arm-none-linux-gnueabi,結果出現報錯, 看著很無語,因為這個錯誤之前在做tslib檢測觸控式螢幕時就
Swap file ".hive-site.xml.swp" already exists
ready swa com image already oop exists ive exist 1、使用命令[hadoop@slaver1 conf]$ ls -la查找出隱藏文件,然後刪除報出來的錯誤文件。 [hadoop@slaver1 conf]$ rm -r
Swap file "/etc/.hosts.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it,
vi編輯器 編輯 swp文件 討論 恢復文件 ado div linu 正常 非正常關閉vi編輯器時會生成一個.swp文件 非正常關閉vi編輯器時會生成一個.swp文件 關於swp文件 使用vi,經常可以看到swp這個文件,那這個文件是怎麽產生的呢,當你打開一個文件,