On 7/29/06, Kim Schulz <[EMAIL PROTECTED]> wrote:
hi is there a way to check if a guioption is set. normally I would use somthing like: if guioptions == m :set guioptions-=m<cr>:else<cr>:set guioptions+=m<cr>:endif<cr> but since guioptions is a sequence of options and not just a single letter, this wont work.
if & guioptions =~# 'm' | set guioptions-=m else | guioptions+=m | endif Operator =~# matches case-sensitive. Operator =~? matches case-insensitive. :help =~# :help =~? Yakov
