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

Re: input dialog

Expand Messages
  • epanda
    1-I have tried the on both directories but it does the same thing 2-I have started gvim in debug mode and before the first breakpoint, I have the same
    Message 1 of 12 , May 4 1:36 AM
    • 0 Attachment
      1-I have tried the \\ on both directories but it does the same thing

      2-I have started gvim in debug mode and before the first breakpoint, I
      have the same message box with my $HOME inside.

      argG.....

      On 3 mai, 23:09, Tony Mechelynck <antoine.mechely...@...> wrote:
      > On 03/05/08 09:38, epanda wrote:
      >
      >
      >
      > > I have followed your advise and it seems to work when I am already
      > > under gvim and I source the _vimrc file.
      >
      > > On contrary, if I launch Gvim for the first time, I have a message
      > > with the %HOMEPATH% inside.
      >
      > > I have tried this code :
      >
      > > " définition du chemin de base de recherche
      > > if has("win32")
      > > let workingDirectory = "C:\\workingDirectory1\\"
      > > if !isdirectory(workingDirectory)
      > > let workingDirectory = "D:\\workingDirectory2"
      > > endif
      > > if !isdirectory(workingDirectory)
      > > let workingDirectory = inputdialog("Répertoire de travail non
      > > trouvé, Autre répertoire svp:")
      > > endif
      > > "exe "set path^=".workingDirectory."\\**"
      > > let&path = workingDirectory
      > > "exe "set path^=".workingDirectory
      > > "exe "set tags^=".workingDirectory."\\tags"
      >
      > > else etc..
      >
      > > Thanks
      >
      > I notice that you use a final backslash for one directory and not the
      > other. Does it make a difference if you use it both places? Or neither?
      >
      > As a last resort "en désespoir de cause" you might start vim with the -D
      > switch on the command line and follow the execution step by step, see
      > ":help debug-scripts". Then you'll even be able to use ":echo"
      > statements from the keyboard between one line and the next, to see what
      > the values of the variables are.
      >
      > Best regards,
      > Tony.
      --~--~---------~--~----~------------~-------~--~----~
      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.