spf13-vim
spf13-vim copied to clipboard
Error detected while processing /root/.vimrc:
====================================== [root@bogon ~]# vi Error detected while processing /root/.vimrc: line 103: E538: No mouse support: mouse=a line 232: E518: Unknown option: foldenable line 1140: E475: Invalid argument: => bufoutput Press ENTER or type command to continue [2]+ Stopped vi
===================================== after i install on centos6.5 ,I get the wrong information ,could you please help solve the problem,thank you very much.
Same thing here. It works well when I open any regular files, but shows this error when I use crontab -e
.
Thanks a lot!
@MichaelMa2014 @ISeeWorld Add this line to your .vimrc.local to fix.
autocmd filetype crontab setlocal nobackup nowritebackup
I'd like to re-open this issue. I'm using CentOS 7 and getting the exact same errors listed above when using crontab -e. I added your fix to my .vimrc.local file, and nothing changed. Thanks!
use vim not vi
@MichaelMa2014 The reason is that when you use crontab, system will use vi, instead of vim.
You can set system variable to change it.
export EDITOR=/usr/bin/vim
Add to you .bashrc and source it.