corykendall 写道:
Howdy ladies and gentlemen,

I use VIM for all editing... half of which is saved on a Windows machine,
and the other half of which is saved through Samba on a Unix machine.  Gvim
itself is running on windows.

I'm looking for something I can add to my vimrc that automatically calls
":set ff=unix" when I save to either the U:\ or V:\ drives (both mapped via
Samba to unix), and automatically calls ":set ff=dos" otherwise.

Thanks for any help!

You can use the autocmd FileWritePre to catch the event and do what you want..


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to