1

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

2
  • 3
    What do you mean by definite ? Aug 3, 2011 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, 2011 at 7:28

2 Answers 2

1

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

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.

1
  • +1 for the shift + q bit
    – bhinesley
    Aug 9, 2011 at 16:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .