bk3810 / LinuxTips

0 stars 0 forks source link

Vim startup errors Invalid expressions... #1

Open bk3810 opened 4 years ago

bk3810 commented 4 years ago

Error detected while processing /home/bkkim/.vimrc: line 1: E474: Invalid argument: background=dark^M line 2: E492: Not an editor command: ^M line 6: E492: Not an editor command: ^M line 12: E488: Trailing characters: modifiable^M line 17: E488: Trailing characters: expandtab^M line 18: E488: Trailing characters: incsearch^M line 21: E474: Invalid argument: foldmethod=indent^M line 22: E474: Invalid argument: foldnestmax=1^M line 23: E492: Not an editor command: ^M line 24: E185: Cannot find color scheme 'desert^M' line 27: E492: Not an editor command: ^M Press ENTER or type command to continue

:w ++ff=unix 로 해결~

또는 For Ubuntu/Debian sudo apt-get install tofrodos; sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix

dos2unix /foo/bar/path/에러파일