Linux登录提示

来源:百度知道 编辑:UC知道 时间:2024/09/21 12:29:06
前段时间设置VIM语法高亮的时候,不知道搞错什么东西了~每次登录都提示:
-bash export '=':not a valid identifier
-bash export 'xterm-color': not a valid identifier
请问应该怎样消除?
.vimrc 文件内容如下:
set bs=indent,eol,start

set viminfo='20,\"50

set history=50

set ruler

if has("autocmd")

autocmd BufRead *.txt set tw=78

autocmd BufReadPost *

\ if line("'\"") > 0 && line ("'\"") <= line("$") |

\ exe "normal! g'\"" |

\ endif

end if

if has("cscope") && filereadable("/usr/bin/cscope")

set csprg=/usr/bin/cscope

set csto=0

set cst

set nocsverb

if filereadable("cscope.out")

你检查以下三个文件:
/etc/profile
/root/.bash_profile
/root/.vimrc

这三个文件中有用到export的地方出现了语法错误.请将它清除掉.
估计你是写了 export= .... 这是错误的用法.

把你的vimrc贴出来才好找问题啊