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

121398Re: Incorrect working directory in gvim launched from Konqueror

Expand Messages
  • Jean Johner
    Mar 6, 2011
      John Little wrote:
      > Telling vim to do it seems to me to be supported; it's working for me
      > with:
      > /usr/local/bin/gvim -c "%%:h" -f %F
      > That sets the current directory to the path of the first file. The %
      > is doubled to escape it from the desktop mechanism.

      In KDE 3.5, to launch gvim by clicking a .f file and have the good
      working directory (without adding anything in the .vimrc), you must
      pull the Konqueror's "Settings" menu, choose "Configure Konqueror"
      then "File Associations", choose x_fortran in "text", click gvim then
      "edit" then "Application". In "Command", I typed
      $HOME/bin/gvim -c "cd %:h" %f

      (note that the % is not doubled, even %f is optional. Also note that
      you have forgotten cd in your command).

      Alternatively, you may edit the

      I keep thinking that this command should be done by default by gvim.

      Thank you John,

      Best regards,

      Jean Johner

      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
    • Show all 19 messages in this topic