Nicolas Aggelidis (2009-01-12 11:10 +0200) wrote:
> hi, i use vim both at work and at home so i share configuration files
> between them. is there any way to enable some options based on the
> value of global variable?
You can detect the system with hostname() function, like this:
if hostname() == 'myhomebox'
call do_this()
else
call do_that()
endif
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---