Dennis Benzinger wrote:
>  Hi!
>
>  How can I check if there is no search highlighting because of
>  :nohlsearch opposed to :set nohlsearch ?

In expressions, you can prefix an option name with '&' to retrieve
the option's value.  For example::

    if &hlsearch
      echo "hlsearch is on"
    else
      echo "hlsearch is off"
    fi

See :help expr-option for details.

Michael Henry


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to