Hi Michael! Am 12.04.2009 15:07, Michael Henry schrieb: > 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. > [...]
Yes, but that only helps for getting the hlsearch option. It doesn't help if the search highlighting was temporarily turned off by the :nohlsearch command. Thanks anyway, Dennis Benzinger --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
