I would like to insert my current PATH effectively onto my document.

I run unsuccesfully

:echo $PWD

and

:pwd

How can you insert your current PATH in the VIM -document on your your document?

link|improve this question

feedback

2 Answers

up vote 5 down vote accepted

Like this:

:r ! pwd
link|improve this answer
What does r stands for? – OscarRyz Jul 24 '09 at 23:21
Read, I believe. – jtbandes Jul 24 '09 at 23:25
Yes. "Read from command pwd into the current buffer." – geekosaur Mar 17 '11 at 6:54
feedback

You can use :.!pwd in vim's normal mode.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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