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

87920w32 gvim expand("[b...]") = "b" if current directory contains /b folder

Expand Messages
  • haron
    Mar 1, 2008
    • 0 Attachment
      Looks like expand() recognizes "[<letter>...]" construct as name
      of directory <letter>, if directory <letter> is contained in
      current directory. In ":help expand" isn't mentioned any special
      meaning for "[]" characters. They seems to have effect only if
      there both - left and right "[" "]" square brackets are present.
      Is this is a desired behavior ? If not, I will may be try to look
      to expand() implementation ?

      Example, demonstrating the "problem":

      $ cd c:\tst
      $ dir /s/b
      $ gvim -u NONE -U NONE
      :echo expand("[BufferExplorer]")
      :echo expand("[CufferExplorer]")
      :echo expand("BufferExplorer")
      :echo expand("CufferExplorer")
      :echo expand("[BufferExplorer")
      :cd ..
      :echo expand("[BufferExplorer]")
      :echo expand("[CufferExplorer]")

      Just one (beginners) assumption - can it have something to do
      with code for handling VMS paths ?

      PS: :version
      VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 21 2008 07:14:56)
      MS-Windows 32 bit GUI version with OLE support
      Included patches: 1-262
      Compiled by digitectNO@...
      Big version with GUI. Features included (+) or not (-):

      PPS: I start own topic for this, because it has nothing to do
      with "crash w32 gvim", for full history please refer to
      "crash w32 gvim 7.1 (2007 May 12) with BufExplore"

      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 3 messages in this topic