Wednesday, July 20, 2011

Re: How to get the directory name of the current file

Within vim, %:h will do that. To demonstrate, try:

:!ls %:h

or

:e %:h/elephant

Erik

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment