Author Topic: vim-like highlight on search  (Read 5732 times)


  • Community Member
  • Posts: 13
  • Hero Points: 0
vim-like highlight on search
« on: November 09, 2006, 03:07:20 pm »
In vim, if you use '#' or '*' to search the current word, or use '/' to search via a reg-ex, vim will highlight the things that match.  Is there a way to get SE11.0.2 to do that?


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: vim-like highlight on search
« Reply #1 on: November 09, 2006, 03:53:03 pm »
If you're using the Find dialog, you can use the 'Highlight all matches' checkbox option.

If you're searching on the command line (like you should, Mr Vim User), then you can use the # option (mark all) in conjunction with the * (for find all). So to look for and highlight all instances of searchfor in the current editor window, on the command line type
Code: [Select]
You may also like the highlight matching for incremental search. Go to Tools > Options > General > Search, and check the 'Incremental Search highlighting' option.


  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: vim-like highlight on search
« Reply #2 on: March 09, 2007, 10:15:10 pm »
Is there any support for this in SE v10?

I've tried the /searchfor/*# and got "Invalid option".

I've even tried to code the macro myself but from the Slick-C document, it says
"SlickEdit supports multiple selections, however only one selection can be active or visible."

Maybe I'm not looking in the right place?  Can anyone give me some pointers?


  • Community Member
  • Posts: 64
  • Hero Points: 6
Re: vim-like highlight on search
« Reply #3 on: March 09, 2007, 11:07:11 pm »
How do I unhighlight (in vim, it's :noh)?  Also, it only highlights a single result at a time?  That seems odd.

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: vim-like highlight on search
« Reply #4 on: March 15, 2007, 02:15:19 pm »
boltar: we added the functionality to highlight all matches in v11.

alex: use the clear-highlights command. By a single result, do you mean a single match for a the specified search pattern. If so, put a check in "List all occurences".