Works like a champ! Thanks very much, Ag!!
On Jan 29, 5:31 pm, "Agathoklis D. Hatzimanikas" <[email protected]>
wrote:
> On Thu, Jan 29, at 10:18 WiggyWare wrote:
>
> > Can anyone tell me how I'd go about specifying a file to "source" in
> > my vimrc (hopefully works for both Unix & Windows) dynamically
>
> > I have a common account that people sudo into from their own accounts.
> > I can determine their actual user ID with proctree, so I'd like to
> > allow them to create their own custom vimrc to load when they are in
> > the common account.
>
> > ssh -l foo hostname
> > foo#> sudo bar
> > bar#> vim
> > <Loads vim with .vimrc, which loads .vimrc_foo>
>
> > I tried to do this in my .vimrc as a test:
> > let g:myvar = ".vimrc_foo"
>
> exec 'source '.g:myvar
>
>
>
> > I get an error
> > E484: Can't open file g:mysrc
>
> > Does anyone know how I can reference the file to be sourced with a
> > variable?
>
> > Thanks in advance!
>
> Regards,
> Ag.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---