1

Is it possible to save the file which is being edited in vim into a definite directory?

  • 3
    What do you mean by definite ? – lamwaiman1988 Aug 3 '11 at 7:25
  • when I'm trying to save the file :w .. and pressing tab for options, it shows all the directories within C:/Users/User, but it doesn't "see" other drives – Sergey Aug 3 '11 at 7:28
1

try :browse w to open a graphical browser to allow you to change drives etc.

|improve this answer|||||
1

you could also use the wq /path/to/directory/ to save the file. For example if you are editing a file named example.txt, after editing you press esc then shift + q, then this is what should follow; :wq /home/example.txt this also works but will live a copy of your file in in its current folder.

|improve this answer|||||
  • +1 for the shift + q bit – bhinesley Aug 9 '11 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.