Reputation: 5153
I just reformatted my OS-HDD today, did a clean sweep of all software, fresh installs (I love when I get to do that!).
On my re-install of Cygwin, everything is fine, except for the following issue:
Cygwin-Git issue (pre: git init, git add *)
Justin@DESKTOP-Q66GK39 /cygdrive/c/ti/lib/jmrTemp
$ git commit
Error detected while processing /usr/share/vim/vim80/defaults.vim:
line 100:
E10: \ should be followed by /, ? or &
line 101:
E10: \ should be followed by /, ? or &
line 102:
E10: \ should be followed by /, ? or &
line 114:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Error Code Source
#vim80/defaults.vim:99-102
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
#vim80/defaults.vim:112-114
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
Questions
Upvotes: 2
Views: 272
Reputation: 5153
Drop the multi-lines... duh :)!
Here is my working copy:
Solution 1
autocmd BufReadPost * if line("'\"") >= 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
Solution 2
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis | wincmd p | diffthis
endif
Embarassing I didn't try this earlier, sheesh. Posting here for others, if needed! :)
Upvotes: 1
Reputation: 62
The easiest way to fix this problem is to just modify the file in question to use the "standard" line-continuation method which is a \
character at the end of the line to be continued (whereas this file is attempting to do the alternate way of a \
at the beginning of lines 2+)
Example:
#vim80/defaults.vim:99-102
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
Should be changed to:
#vim80/defaults.vim:99-102
autocmd BufReadPost * \
if line("'\"") >= 1 && line("'\"") <= line("$") | \
exe "normal! g`\"" | \
endif
Upvotes: 2