Open sudoyang opened 6 years ago
It appears that there's a bug (https://github.com/vim/vim/issues/3014) in that version of Vim. A workaround is to add set nocompatible
to your .vimrc
file.
Thanks! @cangiuli but I have nocompatible set already.
I do not know the mechanism but I fixed it by putting this statement "colorscheme solarized" to the very end of my .vimrc file and everything is normal. This link inspires me to do so. I guess the error message I got is due to it cannot find some required setting in advance. If anyone is very clear about why, it would be great to describe the mechanism. Thanks!
FYI, in case anyone else is having this problem, it looks like it was an issue with the Debian package, and can be resolved as described here: https://github.com/vim/vim/issues/3014#issuecomment-397884880
I am hitting the same issue on VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:10:41).
The problem occurs on changing the default location of my vimrc file. I am using vim -u
I tried putting colorscheme solarized at the end of .vimrc but that didn't work either.
Below list all errors I got. Anyone has same problem? Thanks.
Error detected while processing /home/phy/.vim/colors/solarized.vim: line 138: E697: Missing end of List ']': E15: Invalid expression: [ line 139: E10: \ should be followed by /, ? or & line 140: E10: \ should be followed by /, ? or & line 141: E10: \ should be followed by /, ? or & line 144: E697: Missing end of List ']': E15: Invalid expression: [ line 145: E10: \ should be followed by /, ? or & line 146: E10: \ should be followed by /, ? or & line 147: E10: \ should be followed by /, ? or & line 152: E121: Undefined variable: s:terms_italic E15: Invalid expression: s:terms_italic line 165: E697: Missing end of List ']': E15: Invalid expression: [ line 166: E10: \ should be followed by /, ? or & line 167: E10: \ should be followed by /, ? or & line 168: E10: \ should be followed by /, ? or & line 169: E10: \ should be followed by /, ? or & line 170: E10: \ should be followed by /, ? or & line 171: E10: \ should be followed by /, ? or & line 172: E10: \ should be followed by /, ? or & line 173: E10: \ should be followed by /, ? or & line 174: E10: \ should be followed by /, ? or & line 175: E697: Missing end of List ']': E15: Invalid expression: [ line 176: E10: \ should be followed by /, ? or & line 177: E10: \ should be followed by /, ? or & line 178: E10: \ should be followed by /, ? or & line 179: E10: \ should be followed by /, ? or & line 180: E697: Missing end of List ']': E15: Invalid expression: [ line 181: E10: \ should be followed by /, ? or & line 182: E10: \ should be followed by /, ? or & line 183: E10: \ should be followed by /, ? or & line 184: E10: \ should be followed by /, ? or & line 185: E10: \ should be followed by /, ? or & line 186: E10: \ should be followed by /, ? or & line 187: E697: Missing end of List ']': E15: Invalid expression: [ line 188: E10: \ should be followed by /, ? or & line 189: E10: \ should be followed by /, ? or & line 190: E10: \ should be followed by /, ? or & Error detected while processing function8_SetOption:
line 10:
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
E121: Undefined variable: s:defaults_list
E116: Invalid arguments for function add
Press ENTER or type command to continue