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

link|improve this question

79% accept rate
3  
What do you mean by definite ? – gunbuster363 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
feedback

2 Answers

up vote 1 down vote accepted

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

link|improve this answer
feedback

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.

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

Your Answer

 
or
required, but never shown

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