Tim Chase wrote: >> I have a script that set some environment variables using let, like: >> let $TAB_WIDTH=4 >> >> Then another script use this environment variable to setup some options in >> vim, I am trying to use: >> set tabstop=$TAB_WIDTH >> > > You can use :let instead, using a setting-variable: > > :let &tabstop=$TAB_WIDTH > > which you can read about at > > :help :let-& > As an alternative,
exe "set tabstop=".$TAB_WIDTH will also set the tabstop with the environment variable value. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
