Loading ...
Sorry, an error occurred while loading the content.

Re: about vimrc vim7.2a

Expand Messages
  • Ben Schmidt
    ... Thanks for pointing that out, Tony. I didn t look carefully enough. Yes, that does look good, Bram. Ben.
    Message 1 of 8 , Jul 1, 2008
    • 0 Attachment
      Tony Mechelynck wrote:
      > On 01/07/08 02:39, Ben Schmidt wrote:
      >> Bram Moolenaar wrote:
      >>> Ben Schmidt wrote:
      >>>
      >>>> Tony Mechelynck wrote:
      >>>>> On 30/06/08 07:01, momodi wrote:
      >>>>>> hi
      >>>>>> my OS is ubuntu8.04
      >>>>>> I installed vim7.2a
      >>>>>> but when I open gvim and select Startup Setting.
      >>>>>> gvim open a new MYVIMRC file to me.
      >>>>>> why?
      >>>>>>
      >>>>>> when I use vim7.1 gvim will open my .vimrc file to me, which at
      >>>>>> ~/.vimrc
      >>>>> $MYVIMRC points to the vimrc Vim used in this session, but for some
      >>>>> reason that menu entry doesn't resolve the environment variable.
      >>>> This is a bug recently introduced with all the security fixes. I sent
      >>>> Bram a patch about a fortnight ago, but he evidently hasn't accepted it
      >>>> or made a similar modification yet. Here's the patch again:
      >>>>
      >>>> diff -r 503e0d426e7a runtime/menu.vim
      >>>> --- a/runtime/menu.vim Mon Jun 16 00:45:14 2008 +1000
      >>>> +++ b/runtime/menu.vim Tue Jun 17 00:23:57 2008 +1000
      >>>> @@ -187,17 +187,17 @@
      >>>>
      >>>> fun! s:EditVimrc()
      >>>> if $MYVIMRC != ''
      >>>> - let fname = "$MYVIMRC"
      >>>> + let fname = expand("$MYVIMRC")
      >>>> elseif has("win32") || has("dos32") || has("dos16") || has("os2")
      >>>> if $HOME != ''
      >>>> - let fname = "$HOME/_vimrc"
      >>>> + let fname = expand("$HOME")."/_vimrc"
      >>>> else
      >>>> - let fname = "$VIM/_vimrc"
      >>>> + let fname = expand("$VIM")."/_vimrc"
      >>>> endif
      >>>> elseif has("amiga")
      >>>> let fname = "s:.vimrc"
      >>>> else
      >>>> - let fname = "$HOME/.vimrc"
      >>>> + let fname = expand("$HOME")."/.vimrc"
      >>>> endif
      >>>> let fname = s:FnameEscape(fname)
      >>>> if&mod
      >>>>
      >>>> Hope this helps,
      >>> I don't recall seeing this patch.
      >> Mmm. I thought it was odd that I hadn't heard from you. I wonder where
      >> it went!
      >>
      >>> I think it can be done simpler
      >>> without the expand() calls, since environment variables are recogized?
      >> No, that has the exact effect of undoing the patch! The problem is
      >> precisely that environment variables are not recognised because
      >> FnameEscape escapes the dollar signs. Perhaps the correct solution is
      >> just to remove the call to FnameEscape, though? I suppose if you know
      >> the environment variables are valid/trust them, and obviously the text
      >> "_vimrc" etc. is valid, the call is superfluous anyway.
      >>
      >> Ben.
      >
      > On the contrary, the way Bram wrote it below the environment variables
      > are resolved before passing their _values_ to FnameEscape()
      >
      > let fname = $HOME . "/_vimrc"
      >
      > Notice that $HOME is not quoted: it is a variable, and its _value_ is
      > concatenated with "/_vimrc". Then, later, the result is passed to
      > FnameEscape().

      Thanks for pointing that out, Tony. I didn't look carefully enough.

      Yes, that does look good, Bram.

      Ben.



      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Roland Puntaier
      Hi, I just tried mt atop a directory mf atop a file and then mm should nt that move the file into the directory. It didn t on my VIM 7.1 on Windows. any Idea?
      Message 2 of 8 , Jul 1, 2008
      • 0 Attachment
        Hi,

        I just tried
        mt atop a directory
        mf atop a file
        and then mm

        should'nt that move the file into the directory.

        It didn't on my VIM 7.1 on Windows.

        any Idea?

        Roland



        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_use" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      Your message has been successfully submitted and would be delivered to recipients shortly.