vi is failed with error "E382: Cannot write, 'buftype' option is set" in Linux
在linux下生成jar文件遇到了編碼問題,於是想vi t.jar,在保存是報錯:E382: Cannot write, ‘buftype‘ option is set
解決方法:
可以用下面的命名查看buftype的設置,當buftype=nofile時,不能保存文件,只有當buftype=空時,才可以保存
>> vi t.jar
>> :verbose set buftype
在文件的最下方可以看到
buftype=nofile
Last set from /usr/share/vim/vim74/autoload/zip.vim
Press ENTER or type command to continue
修改buftype的方法:
>> vi t.jar
>> :setlocal buftype=
>> :verbose set buftype
在文件的最下方可以看到
buftype=
然後就可以修改想要修改的內容,然後保存了
比如
>> :set fileencoding=latin1
>> :wq!
這樣就會修改成功
如果想在保存前改回原設置,可用下面的命令:
>> :setlocal buftype=nofile
默認保存完,也是改回了nofile
vi is failed with error "E382: Cannot write, 'buftype' option is set" in Linux
相關推薦
vi is failed with error "E382: Cannot write, 39;buftype39; option is set" in Linux
rom set ror ast style led not file ati 在linux下生成jar文件遇到了編碼問題,於是想vi t.jar,在保存是報錯:E382: Cannot write, ‘buftype‘ option is set 解決方法: 可以用下面的命
Commit failed with error SVN:"xxx.x" is scheduled for addition, but is missing
刪除資料夾後點commit提交,但是報錯,報錯內容如下: 提示 "Commit failed with error 0 files committed, 3338 files failed to commit: 111 svn: E155010: Commit failed (de
解決安裝ipython時Command "python setup.py egg_info" failed with error code 1 in /tmp
ipython pip failed python2.7 ipython 6.0+ 最近使用ubuntu16.04 server版安裝ipython的時候一直在報錯:IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.
解決Python3安裝turtle提示錯誤:Command "python setup.py egg_info" failed with error code 1
pip install turtle 出現 可以選擇升級 setuptools pip install --upgrade setuptools 升級完成後,還是會出現錯誤的話,就手動選擇更改檔案 按照給定的連結,下載turtle包,手動解壓,修改setu
解決Command "python setup.py egg_info" failed with error code 問題
當執行命令時 會出現這種情況 Command "python setup.py egg_info" failed with error code 出現這種情況的話,應該是 setuptools 沒有安裝。 開啟窗口出入 cmd 命令,輸入 pip ins
iOS AFNetworking load failed with error Error Domain=NSURLErrorDomain Code=-1001 "The request ti問題解決
在使用 AFNetworking 進行伺服器資料的請求時,出現瞭如下錯誤: 根據列印的錯誤資訊,我們可以發現,這是網路請求超時引起的,所以對程式碼修改如下: AFHTTPSessionManager *manager = [AFHTTPSession
pycharm18.2.4 + Python3.7.1 安裝salt報錯python pip install salt: Command "python setup.py egg_info" failed with error code 10 及解決方法
最近在使用Python3.7.1 + pycharm + salt編寫程式中需要用到salt模組,但是在pycharm中使用pip install salt 安裝時出現錯誤: 1、提示需要 microsoft visual c++ 14.0 解決方法:可以去官網http://land
安裝notedown時出現"python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-By7yob/
notedown外掛可以開啟Markdown檔案,用起來很方便。可是最近在Python2.7+caffe2環境下安裝notedown的時候卻出現了很多問題。 1. Python3.6 + notedown 對於Python3.0以上的版本,可以直接 使用下面
Command "python setup.py egg_info" failed with error code 1 in C:\Users\w5659\AppData\Local\Temp\pip-install-t7uomu4r\xa dmin\
Error msg: C:\Users\w5659>pip install xadmin Collecting xadmin Using cached https://files.pythonhosted.org/packages/1d/e9/2ac160c532d0d462142fa90a
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qvc66dfs/supervisor/
dfs comm png iso mage str pip sta style # 安裝supervisor 出錯 pip3 install supervisor # 解決 sudo pip3 install supervisor Command "pyt
安裝pyecharts報錯Command "python setup.py egg_info" failed with error code 1
在使用 pip install pyecharts 命令安裝pyechats 時,出現瞭如下錯誤: Command "python setup.py egg_info" failed with error code 1 in C:\Users\SEAVAN~1\AppData\Local\T
安裝 pyspark 出現 "python setup.py egg_info" failed with error code 1 in C:\Users\ZHANGZ~1\...
在安裝pyspark時執行pip install pyspark後報如下錯誤: File “d:\python36\lib\site-packages\setuptools\dist.py”, line 429, in fetch_build_egg return cmd.easy_inst
python安裝庫時候Command "python setup.py egg_info" failed with error code 1 解決方案
因比賽需要,需要安裝一個魔方庫 kociemba,使用python最佳 但是pip install kociemba,出現上述錯誤,於是各種baidu ,CSDN都看了,但是他們的方法都是說缺什麼esay_install啊,需要更新pip安裝工具之類的,我的pyt
python mysqlclient安裝失敗 Command "python setup.py egg_info" failed with error code 1
python2 python3 中程式碼 pip install mysqlclient 都安裝失敗的話, 很有可能是你的作業系統中沒有安裝mysql 如果確定已經安裝了,請忽略下面的內容. Ubuntu 下安裝 mysql的方法 sudo apt-get -y insta
執行pip install xxx時報錯: command "python setup.py egg_info" failed with error code 10
問題描述: 安裝了 python-3.7.2-amd64.exe ,在執行pip install xxx時報錯: command "python setup.py egg_info" failed with error code 10 解決辦法: step1. 執行pip inst
pip安裝出現Command "python setup.py egg_info" failed with error code 1 的解決方案
python安裝包的時候報錯: python setup.py egg_info" failed with error code
iOS 模擬器運行不能聯網 PAC Fetch failed with error
out unknown ttr port rdo cell authent cal 報錯 app在模擬器是哪個啟動成功會自動連接服務器,然後Xcode控制臺報錯, 模擬器 PAC Fetch failed with error [NSURLErrorDomain:-1001
TLS negotiation failed with error UnknownCredentia
watermark ddc box fail ges 混合部署 技術分享 失敗 ado Exchange 2013混合部署環境遇到一個更換證書後,本地服務器給Office 365發送郵件通過TLS方式失敗問題,下面將問題解決過程分享給大家。一、問題現象1、在Exchange
windows下使用pip安裝模塊發生“failed with error code 1”的解決方法
pil blank local 出現 自己 comm exec app ted win不愧是最爛的開發平臺,在安裝第三方模塊時經常出現些幺蛾子。 今天在window中使用python3自帶的pip安裝scrapy時,出錯,錯誤代碼如下: Command "f:\python
python pip安裝報錯python setup.py egg_info failed with error code 1
setup all get setup.py target pip升級 升級 col python版本 安裝locust遇到點問題折騰了好一會兒,記錄一下。 使用命令pip install locustio提示python setup.py egg_info failed