Tuesday, December 10, 2013

Re: "Diff with Vim" not work properly (cont.)

can give me a full corrent MyDiff?


2013/12/10 Ben Fritz <fritzophrenic@gmail.com>
On Monday, December 9, 2013 2:21:52 AM UTC-6, shada wrote:
> modify one line in $home/_vimrc:
> function MyDiff()
> ...
>   if $VIMRUNTIME =~ ' '
>     if &sh =~ '\<cmd'
>
> ...
>
> to:
>
> function MyDiff()
> ...
>   if $VIMRUNTIME =~ ' '
>     if &sh =~ "\<cmd"
>
> ...
>

Ugh. NO. This just makes the test fail so that the broken code that was intended to run doesn't actually run.

The correct fix is to remove the extra quotes added inside that test and let shellxquote handle the quoting.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: