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

44789Re: changing cwd (easy)

Expand Messages
  • Hiroshi Iwatani
    Nov 1, 2003
      If I understand your requirement correctly,

      while yu're editing test.txt, do

      :sav test2.txt

      jonah wrote:
      > Hi,
      > How can you set the current working directory to the directory of the current
      > file?
      > 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
      > Thanks for any info,
      > jonah

      Hiroshi Iwatani

      *stop cruelty* Annual number of institutionally euthanized cats and dogs
      including kittens and puppies: US 5 million, JP 500 thousand. How about your
      country? *for our better karma*
    • Show all 5 messages in this topic