Hi,
[email protected] wrote: > > my plan is to do the following > > In my colorscheme file: > let g:myactivestl='foo bar gnu gnats' > let g:mypassivestl='far goo snagts' > > in my .vimrc file: > au WinEnter let &statusline=g:myactivestl > au WinLeave let &statusline=g:mypassivestl > > You wrote that there is a 'setlocal' and a 'set' > I scanned the helps but didn't find any equivalent of this for the > "let"-command? to access a local option in a :let-command you have to prefix the option name with "l:", so your command should actually be au WinEnter let &l:statusline=g:myactivestl au WinLeave let &l:statusline=g:mypassivestl You can find the relevant help with :help :let /setlocal Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
