关于出现Not an editor command: Bundle '**/*.vim'的解决方案【转】
转自:https://blog.csdn.net/YHM07/article/details/49717933
操作系统:
$ uname -r
2.6.32-573.7.1.el6.x86_64
$ cat /etc/issue
CentOS release 6.7 (Final)
Kernel \r on an \m
问题及现象
在使用crontab -e
或者是less
的编辑命令时出现错误提示:
Error detected while processing /home/centos/.vimrc:
line 54:
E518: Unknown option: autochdir
line 92:
E518: Unknown option: foldenable
line 93:
E518: Unknown option: foldmethod =syntax
line 94:
E518: Unknown option: foldcolumn =0
line 95:
E518: Unknown option: foldlevel =1
line 166:
E492: Not an editor command: Bundle ‘gmarik/Vundle.vim’
line 171:
E492: Not an editor command: Bundle ‘scrooloose/nerdtree’
line 172:
E492: Not an editor command: Bundle ‘Lokaltog/vim-powerline’
line 173:
E492: Not an editor command: Bundle ‘scrooloose/syntastic’
line 175:
E492: Not an editor command: Bundle ‘davidhalter/jedi-vim’
单独使用vim编辑文件时并没有如此错误提示。
解决方案
由于单独使用vim时并没有如此错误,怀疑默认的编辑器并非vim,利用echo $EDITOR
查看默认的编辑器结果为空,因此设置默认的编辑器为vim.
编辑~/.bashrc,在末尾添加export EDITOR=vim
,然后执行source ~/.bashrc
,然后在运行以上的如crontab -e
或者less
命令错误提示没有出现,问题解决。
备注
如果单独使用vim就出现以上错误提示,可能原因
- 没有安装Vundle插件管理,可以通过
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
安装。 - 如果已经安装
Vundle
插件管理,仍然出现以上错误提示,可能是没有运行相关命令安装对应插件导致,可以通过在vim中运行:BundleInstall
来解决该问题。
关于Vundle的详情请参考github/Vundle。
补充
在查看有关该类问题的解决方案时,发现有人在使用git commit -v
命令时也会有同样错误出现,而解决方案也是可以通过修改的git的默认编辑器也完成。
git config --global core.editer vim
关于出现Not an editor command: Bundle '**/*.vim'的解决方案【转】的更多相关文章
- E492: Not an editor command: ^M
在windows下拷贝vimrc到Linux,运行vim命令后,出现错误 vim E492: Not an editor command: ^M 原因: linux的文件换行符为\n,但windows ...
- [Tool] SourceTree初始化GitFlow遇到错误(git command not found)的解决方案
[Tool] SourceTree初始化GitFlow遇到错误(git command not found)的解决方案 问题情景 使用SourceTree,可以方便开发人员快速的套用GitFlow开发 ...
- [Ubuntu ] Vim Error E492 - Not an editor command: PluginInstall
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/plugin/Vundle.vim https://stackoverflow.co ...
- Linux command ------ vi / vim
EDIT mode to GENERAL mode: press ESC General mode: operate file :q! :force to close the file but ...
- Command `bundle` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.
呃呃,在写下面的代码时出现的问题,解决办法是npm install或者yarn,如果yarn报错,再npm install就可以了 下面的是携程App首页的样式,有轮播,我没有实现出来 代码如下: / ...
- 0821找不到Command Line Utility的解决方案
在Object-C基础教程中写到,要求选择Xcode中Mac OS X - Command Line Utility - Foundation Tool 但在Xcode4.5中Mac OS X中没有C ...
- mac下使用命令行打包出现bash gradle command not found的解决方案
命令行打包的时候出现 bash gradle command not found这个问题,主要是因为gradle环境丢失.需要重新配置gradle的环境变量. 1. gradle路径的查找 然后gra ...
- 将ArrayList<HashMap<String, String>>转为ArrayList<Bundle>类型的解决方案
Bundle是一种利用键值对存储的数据格式,而我们在程序中通常利用HashMap存储数据.在开发中,通过Http请求得到JSONArray类型的返回值,我选择利用ArrayList<HashMa ...
- -bash: nginx: 未找到命令 (command not found) 解决方案
昨天在linux中安装了 nginx ,并按照网上教程 进行启动 如: ps -ef | grep nginx 可以查看到 我就想重新加载一次 如:提示我找不到 nginx 命令 -c参数指定了要加载 ...
随机推荐
- Luogu 4294 [WC2008]游览计划 | 斯坦纳树
题目链接 Luogu 4294 (我做这道题的时候BZOJ全站的SPJ都炸了 提交秒WA 幸好有洛谷) 题解 这道题是[斯坦纳树]的经典例题.斯坦纳树是这样一类问题:带边权无向图上有几个(一般约10个 ...
- HDU 1069 Monkey and Banana / ZOJ 1093 Monkey and Banana (最长路径)
HDU 1069 Monkey and Banana / ZOJ 1093 Monkey and Banana (最长路径) Description A group of researchers ar ...
- C# 哈希表&列队&栈
哈希表://不规定类型,不规定长度,不规定键值 Hashtable ht = new Hashtable(); //定义 ht[1] = 1; ht['a'] = "abc"; ...
- python基础练习题30道
1.执行python脚本的两种方式 答:1>可以在python /home/xxxx.py 2>cd /home ./xxxx.py 因为py脚本里面指定了python解释器的位置 ...
- prometheus + grafana部署RabbitMQ监控
prometheus + grafana部署RabbitMQ监控 1.grafana导入dashboards https://grafana.com/dashboards/2121 2.expor ...
- Nginx+Swoole服务器配置
nginx 配置 server { listen 80; server_name www.swoole.com; root /data/wwwroot/www.swoole.com; location ...
- 设计模式---单一职责模式之装饰模式(Decorator)
前提:"单一职责"模式 在软件组件的设计中,如果责任划分的不清晰,使用继承,得到的结果往往是随着需求的变化,子类急剧膨胀,同时充斥着重复代码,这时候的关键是划清责任 典型模式(表现 ...
- 学习windows编程 day4 之 多边矩形填充
#include <windows.h> #include <math.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT message, ...
- JVM调优命令-jinfo
jinfo JVM Configuration info这个命令作用是实时查看和调整虚拟机运行参数. 之前的jps -v口令只能查看到显示指定的参数,如果想要查看未被显示指定的参数的值就要使用jinf ...
- Eclipse快捷键大全,导包快捷键:ctrl+Shift+/【转】
Ctrl+Shift+L 显示所有快捷键 Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复 ...