bestswifter / macbootstrap

A bootstrap script for new Mac
Apache License 2.0
774 stars 135 forks source link

Vim Error #16

Closed TMTBO closed 6 years ago

TMTBO commented 6 years ago

enter vim a_file it show me the error:

Error detected while processing function <SNR>22_theme_reload:
line    5:
E121: Undefined variable: g:colors_name
E116: Invalid arguments for function writefile
Error detected while processing /Users/lizhi/.config/nvim/config/theme.vim:
line   37:
E185: Cannot find color scheme 'hybrid'
Press ENTER or type command to continue

pressed enter, then it show:

Error detected while processing VimEnter Auto commands for "*":
E492: Not an editor command: NERDTree
[dein] command TagbarToggle is not found.
Press ENTER or type command to continue

press enter again, I can edit me file

bestswifter commented 6 years ago

安装插件的过程中有报错么,TagBar 和 NERDTree 都是插件。

主题和颜色的问题还没有遇到过,不知道怎么处理

TMTBO commented 6 years ago

报错主要是以下两个

<Notice>: install-steps/guest_account.sh: Disabling the guest account
delete: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
Jan 29 19:03:20  lizhi[23000] <Notice>: install-steps/guest_account.sh: Guest account disabled
chmod: changing permissions of '/System/Library/CoreServices/Search.bundle/Contents/MacOS/Search': Operation not permitted
Downloading bin/fzf ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0    637      0 --:--:-- --:--:-- --:--:--   636
100  884k  100  884k    0     0   203k      0  0:00:04  0:00:04 --:--:--  375k
  - Checking fzf executable ... dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
  Referenced from: /usr/local/bin/awk
  Reason: image not found
Error: 
  - Invalid binary !!!
go executable not found. Installation failed.
fatal: destination path '/Users/lizhi/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting' already exists and is not an empty directory.
mv: cannot move '/Users/lizhi/.config/nvim/' to a subdirectory of itself, '/Users/lizhi/.config/nvim/_backup'
fatal: destination path '/Users/lizhi/.config/nvim' already exists and is not an empty directory.
ln: failed to create symbolic link '/Users/lizhi/.config/nvim/.vim': File exists
bestswifter commented 6 years ago

禁用访客账户的脚本会输出上述错误日志,但似乎功能是正常的,暂时不会管它。 Operation not permitted 那个是因为电脑开启了 SIP,关闭后即可正常使用。

这两个报错都没啥大影响。fzf 的报错也没遇到过,暂时无法解决。

其实我比较关心的是你第一次输入 vim,应该会安装插件,这个过程有报错么,比如某个插件没有安装成功之类的。

TMTBO commented 6 years ago

那堆东西早安装过了,具体有没出错忘记了

Sent from my iPhone

On 29 Jan 2018, at 20:23, Kt Zhang notifications@github.com<mailto:notifications@github.com> wrote:

禁用访客账户的脚本会输出上述错误日志,但似乎功能是正常的,暂时不会管它。 Operation not permitted 那个是因为电脑开启了 SIP,关闭后即可正常使用。

这两个报错都没啥大影响。fzf 的报错也没遇到过,暂时无法解决。

其实我比较关心的是你第一次输入 vim,应该会安装插件,这个过程有报错么,比如某个插件没有安装成功之类的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bestswifter/macbootstrap/issues/16#issuecomment-361229624, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACq9acoFTM08xO-Jo1RhhZjkC6FyI8MKks5tPbhJgaJpZM4Rv_H-.

TMTBO commented 6 years ago

解决了,主要是 neovim 那堆依赖没有安装完成

bestswifter commented 6 years ago

fifteen42 commented 5 years ago

我也是一样的问题诶,是要重新装一下依赖吗

TMTBO commented 5 years ago

我也是一样的问题诶,是要重新装一下依赖吗

cd .vim make

MWLBear commented 5 years ago

我也是一样的问题诶,是要重新装一下依赖吗

cd .vim make 我按照你说的 还是这个错误

➜ ~ cd .vim ➜ .vim git:(master) make Error detected while processing function 21_theme_reload: line 5: E121: Undefined variable: g:colors_name E116: Invalid arguments for function writefile Error detected while processing /Users/lz/.config/nvim/config/theme.vim: line 37: E185: Cannot find color scheme 'hybrid' Press ENTER or type command to continue

bihaiyuanqing commented 4 years ago

我也是一样的问题诶,是要重新装一下依赖吗

cd .vim make 我按照你说的 还是这个错误

➜ ~ cd .vim ➜ .vim git:(master) make Error detected while processing function 21_theme_reload: line 5: E121: Undefined variable: g:colors_name E116: Invalid arguments for function writefile Error detected while processing /Users/lz/.config/nvim/config/theme.vim: line 37: E185: Cannot find color scheme 'hybrid' Press ENTER or type command to continue

我和你的情况一致,请问你怎么解决的?

kingshijie commented 4 years ago

碰到同样情况,我的解决方法是在命令行中执行一次 vim命令,然后会安装一堆插件,然后再用nvim就恢复正常

bihaiyuanqing commented 4 years ago

碰到同样情况,我的解决方法是在命令行中执行一次 vim命令,然后会安装一堆插件,然后再用nvim就恢复正常

你好 能加一下微信沟通下吗?574448638 我现在没有解决,每次报错直接ctrl+D 然后继续

bihaiyuanqing commented 4 years ago

你好,请问这个是如何解决的,可否加微信沟通下 574448638

------------------ 原始邮件 ------------------ 发件人: "Shijie Jin"<notifications@github.com>; 发送时间: 2020年4月1日(星期三) 中午11:41 收件人: "bestswifter/macbootstrap"<macbootstrap@noreply.github.com>; 抄送: "574448638"<574448638@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [bestswifter/macbootstrap] Vim Error (#16)

碰到同样情况,我的解决方法是在命令行中执行一次 vim命令,然后会安装一堆插件,然后再用nvim就恢复正常

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

TMTBO commented 4 years ago

你好,请问这个是如何解决的,可否加微信沟通下 574448638 ------------------ 原始邮件 ------------------ 发件人: "Shijie Jin"<notifications@github.com>; 发送时间: 2020年4月1日(星期三) 中午11:41 收件人: "bestswifter/macbootstrap"<macbootstrap@noreply.github.com>; 抄送: "574448638"<574448638@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [bestswifter/macbootstrap] Vim Error (#16) 碰到同样情况,我的解决方法是在命令行中执行一次 vim命令,然后会安装一堆插件,然后再用nvim就恢复正常 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

https://github.com/rafi/vim-config/blob/master/themes/hybrid.vim 到这里去把这个文件 copy 到你的~/.config/nvim/themes/ 文件夹下应该可以解决

bihaiyuanqing commented 4 years ago

你好,请问这个是如何解决的,可否加微信沟通下 574448638 ------------------ 原始邮件 ------------------ 发件人: "Shijie Jin"[notifications@github.com](mailto:notifications@github.com); 发送时间: 2020年4月1日(星期三) 中午11:41 收件人: "bestswifter/macbootstrap"[macbootstrap@noreply.github.com](mailto:macbootstrap@noreply.github.com); 抄送: "574448638"[574448638@qq.com](mailto:574448638@qq.com);"Comment"[comment@noreply.github.com](mailto:comment@noreply.github.com); 主题: Re: [bestswifter/macbootstrap] Vim Error (#16) 碰到同样情况,我的解决方法是在命令行中执行一次 vim命令,然后会安装一堆插件,然后再用nvim就恢复正常 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

https://github.com/rafi/vim-config/blob/master/themes/hybrid.vim 到这里去把这个文件 copy 到你的~/.config/nvim/themes/ 文件夹下应该可以解决

增加了这个文件 还是没有解决,报错和之前一样,执行 cd ~/.vim; make; 依然报错,vim a_file 仍然和之前一样

bihaiyuanqing commented 4 years ago

cd ~/.vim; make ; image image image

TMTBO commented 4 years ago

要不你试下另外一个 把nvim文件夹删除 用下面这个

https://github.com/rafi/vim-config

Sent from my iPhone

On Apr 3, 2020, at 11:46, bihaiyuanqing notifications@github.com wrote:



cd ~/.vim; make ; [image]https://user-images.githubusercontent.com/20512488/78322226-b62f6d00-75a0-11ea-973a-5432edde8c1d.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/bestswifter/macbootstrap/issues/16#issuecomment-608213488, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVL22J7CMDSBIQGPBR5UI3RKVLZTANCNFSM4EN76H7A.

bihaiyuanqing commented 4 years ago

要不你试下另外一个 把nvim文件夹删除 用下面这个 https://github.com/rafi/vim-config Sent from my iPhone On Apr 3, 2020, at 11:46, bihaiyuanqing notifications@github.com wrote:  cd ~/.vim; make ; [image]https://user-images.githubusercontent.com/20512488/78322226-b62f6d00-75a0-11ea-973a-5432edde8c1d.png — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVL22J7CMDSBIQGPBR5UI3RKVLZTANCNFSM4EN76H7A.

谢谢,这个是ok的