For example, I'd like to setset tabstop=4set shiftwidth=4Is there a way to do something likeset tabstop=4set shiftwidth=tabstopso I can set both values by only changing a single number?
Is there a way to set an option to the value of another option?
options
You can use the let command instead.Like so:let &shiftwidth = &tabstopThe & specifies that the variable name is a Vim option. You can also do :help let-option to know more about it::let &{option-name} = {expr1}        Set option {option-name} to the result of the        expression {expr1}.  A String or Number value is        always converted to the type of the option.        For an option local to a window or buffer the effect        is just like using the |:set| command: both the local        value and the global value are changed.