spf13-vim icon indicating copy to clipboard operation
spf13-vim copied to clipboard

Error detected while processing /root/.vimrc:

Open ISeeWorld opened this issue 8 years ago • 5 comments

====================================== [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.

ISeeWorld avatar Nov 06 '16 06:11 ISeeWorld

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 avatar Mar 14 '17 07:03 MichaelMa2014

@MichaelMa2014 @ISeeWorld Add this line to your .vimrc.local to fix.

autocmd filetype crontab setlocal nobackup nowritebackup

halfcrazy avatar May 22 '17 11:05 halfcrazy

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!

Darkstar90 avatar Jul 03 '17 01:07 Darkstar90

use vim not vi

tracyone avatar Jul 03 '17 05:07 tracyone

@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.

yqtianust avatar Jan 08 '20 09:01 yqtianust