Saturday, July 31, 2010

[SOLVED] Re: Enter a directory automatically when opening files with gvim , possible ?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

@Ben: Nice , it works with `set autochdir'

@Xell: I checked `help autocmd' , just could you do a small explanation
on this part `%:p:h:gs/ /\\ /' ?
Thanks !

@Tony:
> Does the internal :pwd command return the same value as the external
:!pwd ?

Exactly the same.

> AFAICT, there is no specific autocommand to detect when a file is
dropped on the gvim icon, or edited by file association.

Havn't tried , looks like BufNewFile plus BufEnter could help. (see
help autocmd) Doesn't matter for now ;-)

Thanks for all of your help !

- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxTymAACgkQvf41sEptMqDJ/ACfYcw7e61gY1e8LlJnuGvXD9c2
YTYAni083Pvp1kaBzvMG3kM0vJszoy+V
=+1/D
-----END PGP SIGNATURE-----

--
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: