I try that, %:h will get the relative path, that is .(dot), and I want the get the absolute name. I try %:p:h, and it works. Thanks all the time.
2011/7/20 Erik Christiansen <[email protected]> > 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 > -- 何聪辉 Tel: (+86)13450219269 Email: [email protected] -- 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
