Friday, April 6, 2018

Re: Win10 gvim7.4 seemly not have enough permission(default install)

On Friday, January 19, 2018 at 12:09:10 PM UTC+8, Sand Glass wrote:
> Thanks, I use 7.4-1024 version is OK.
> This is the 7.4-1024 version vimrc
> ####################
> set diffexpr=MyDiff()
> function MyDiff()
> let opt = '-a --binary '
> if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
> if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
> let arg1 = v:fname_in
> if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
> let arg2 = v:fname_new
> if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
> let arg3 = v:fname_out
> if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
> if $VIMRUNTIME =~ ' '
> if &sh =~ '\<cmd'
> if empty(&shellxquote)
> let l:shxq_sav = ''
> set shellxquote&
> endif
> let cmd = '"' . $VIMRUNTIME . '\diff"'
> else
> let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
> endif
> else
> let cmd = $VIMRUNTIME . '\diff'
> endif
> silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
> if exists('l:shxq_sav')
> let &shellxquote=l:shxq_sav
> endif
> endfunction

But vim74-1024 has an another bug. I often use window-split function. When I split a window, and ':e .' into the Netrw, stucked here.
So I go back to vim74.0, and just changed the vimrc diff-function.

--
--
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/d/optout.

No comments: