Comment #6 on issue 28 by [email protected]: out of the box, gVim
7.3.46 for Win32 cannot write swap files on Windows 7
http://code.google.com/p/vim/issues/detail?id=28
I just installed vim 7.4 and the problem remains.
The solution:
In vmrc, the following lines exists by default,in lines 14 y 24 I use "
instead single quotes where exists < or >.
This appeared to be related to escape correctly.
Escuse my English.
1 set diffexpr=MyDiff()
2 function MyDiff()
3 let opt = '-a --binary '
4 if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
5 if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
6 let arg1 = v:fname_in
7 if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
8 let arg2 = v:fname_new
9 if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
10 let arg3 = v:fname_out
11 if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
12 let eq = ''
13 if $VIMRUNTIME =~ ' '
14 if &sh =~ "\<cmd"
15 let cmd = '""' . $VIMRUNTIME . '\diff"'
16 let eq = '"'
17 else
18 let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
19 endif
20 else
21 let cmd = $VIMRUNTIME . '\diff'
22 endif
23 silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . " > " .
arg3 . eq
24 endfunction
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.