Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer

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.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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