On Mon, Aug 10, 2009 at 01:47:22PM -0700, at wrote:
> 
> I'd like vim to set the current working directory to that of the file
> I am editing when that file is opened. (This is convenient if I open
> the file by double clicking, say.)
> 
> Should be easy enough to do with an autocommand. But I haven't been
> able to find out how I can determine what the directory of the current
> buffer is. Does anyone know this offhand? Thanks!
> --~--~---------~--~----~------------~-------~--~----~
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php
> -~----------~----~----~----~------~----~------~--~---
> 

:set autochdir
:help 'autochdir'

-- 
Erik Falor
Registered Linux User #445632 http://counter.li.org

Attachment: signature.asc
Description: Digital signature

Reply via email to