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

44791Re: changing cwd (easy)

Expand Messages
  • Antoine J. Mechelynck
    Nov 1, 2003
      jonah <jonahgoldstein@...> wrote:
      > Hi,
      >
      > How can you set the current working directory to the directory of the
      > current file?

      There is, but I'm not sure. Maybe ":cd %:p:h"? (or :lcd instead of :cd to
      change dir only for the current window)
      >
      > Also, is there a way to do a "Save as" and start working on the new
      > file in one simple command?
      > That is, say your working on test.txt. I want a shortcut for doing
      > this:
      >
      > > w test2.txt
      > > e test2.txt

      see ":help :saveas"
      >
      > Thanks for any info,
      > jonah

      Regards,
      Tony.
    • Show all 5 messages in this topic