Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 32: Line 32:
 
|align="center"| Merged to [[VimTip979]]
 
|align="center"| Merged to [[VimTip979]]
 
|-
 
|-
| [[Highlight multiple words]]
+
| [[Multiple Hilighted Search]]
|align="center"| [[#Highlight multiple words|''discuss'']]
+
|align="center"| [[#Multiple Hilighted Search|''discuss'']]
 
|align="center"| Keep
 
|align="center"| Keep
 
|-
 
|-
Line 205: Line 205:
 
----
 
----
   
==[[Highlight multiple words]]==
+
==[[Multiple Hilighted Search]]==
 
Problems, problems! I suppose that keeping this as a short example of a nice trick would be worthwhile. OTOH the tip would just end up irritating me because while it offers an easy way to highlight words, there is no method given to unhighlight them. By the time you cleaned it up, you might have the complexity that is no doubt in the script referenced in the comment. Perhaps tip could be rewritten for a quick intro to match, 2match, matchadd() etc. A couple of tips mention 2match, but only for a specific purpose like highlighting multiple whitespace. I think any serious use of this feature would make one want to use the referenced script. --[[User:JohnBeckett|JohnBeckett]] 12:23, 4 July 2008 (UTC)
 
Problems, problems! I suppose that keeping this as a short example of a nice trick would be worthwhile. OTOH the tip would just end up irritating me because while it offers an easy way to highlight words, there is no method given to unhighlight them. By the time you cleaned it up, you might have the complexity that is no doubt in the script referenced in the comment. Perhaps tip could be rewritten for a quick intro to match, 2match, matchadd() etc. A couple of tips mention 2match, but only for a specific purpose like highlighting multiple whitespace. I think any serious use of this feature would make one want to use the referenced script. --[[User:JohnBeckett|JohnBeckett]] 12:23, 4 July 2008 (UTC)
 
----
 
----
Line 221: Line 221:
 
----
 
----
 
'''Keep''' Very nice result! I'll add a couple of comments to the tip. --[[User:JohnBeckett|JohnBeckett]] 03:57, 2 September 2008 (UTC)
 
'''Keep''' Very nice result! I'll add a couple of comments to the tip. --[[User:JohnBeckett|JohnBeckett]] 03:57, 2 September 2008 (UTC)
----
 
As agreed with BenArmston on the comments of the page, I have changed the title (and fixed links here). The original title was "Multiple Hilighted Search" (but it highlights, and doesn't search). --[[User:JohnBeckett|JohnBeckett]] 00:17, 6 September 2008 (UTC)
 
 
----
 
----
   
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)