Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos环境,安装vimplus之后crontab -e报错 #357

Closed
xuelingkang opened this issue Jun 1, 2021 · 7 comments
Closed

macos环境,安装vimplus之后crontab -e报错 #357

xuelingkang opened this issue Jun 1, 2021 · 7 comments

Comments

@xuelingkang
Copy link

image

没有安装vimplus时是可以用的,安装之后,执行crontab -e报上面那个错误

可以强行编辑,但是:wq保存退出之后,发现并没有保存定时任务,终端报了下面这个错误

crontab: "/usr/bin/vi" exited with status 1

在linux环境没有这种问题。

您可以告诉我怎么解决吗,或者vimplus能不能临时禁用,否则每次编辑定时任务都卸载挺麻烦的,谢谢!

@JerryAllison
Copy link

JerryAllison commented Jun 2, 2021 via email

@xuelingkang
Copy link
Author

我检查了一下alias,并没有这个

但是在我这里,vi其实就是vim的软链接

@JerryAllison
Copy link

JerryAllison commented Jun 2, 2021 via email

@xuelingkang
Copy link
Author

我这里有以下两个vi
/usr/local/bin/vi,通过brew安装的,可以取消软链接
/usr/bin/vi,也是软链接,系统带的,无法删除或重命名

这个错误应该是某个插件导致的吧,可以确定是哪个吗,有没有办法禁用部分插件呢。

@JerryAllison
Copy link

JerryAllison commented Jun 2, 2021 via email

@xuelingkang
Copy link
Author

取消vim的软链接?是vi吗,vim不是软链接,只有brew安装的可以取消,我已经取消了,仍然出现这个问题。

没办法确定问题的话,就这样吧。

@xuelingkang
Copy link
Author

禁用插件:YouCompleteMe,可以解决这个问题
可能这个插件和macos不太兼容吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants