Hi,
On 10/3/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
Hi,
when writing a function in vim script sometimes it makes sense to
change options of vim.
Are these changes local to the function ?
And if not: Can I simply assign the current value of the option to a
variable, change the option and restore the option value from the
value stored in that variable ?
Yes. For example, to turn on the 'ignorecase' option, you can do the
following:
let old_ic = &ignorecase
set ignorecase
" perform some operation
let &ignorecase = old_ic
For more information, read the following Vim help topic:
:help let-option
- Yegappan