Make * and # work as in vim

Bug #339672 reported by Kristoffer Lundén
4
Affects Status Importance Assigned to Milestone
ViGedit
Confirmed
Undecided
Unassigned

Bug Description

Feature request: Make * and # work as in vim.

Basically, jump the next (or previous) occurrence of the current word under the cursor. I use this a lot and it would be very helpful.

See ":help *" in vim. :)

Revision history for this message
Stephen Moore (delfick) wrote :

I plan to create a search mode sometime in the future (probably at the end of this year)

When I do that, I'll make sure to implement this.

Changed in vigedit:
status: New → Confirmed
Revision history for this message
Stefan Bethge (kjyv) wrote :
Revision history for this message
Stefan Bethge (kjyv) wrote :

I added this (without a new search mode though) in my branch lp:~kjyv/vigedit/various
Please test ;)

Revision history for this message
Stefan Bethge (kjyv) wrote :

Improved this to search for tokens instead of 'words' as gedit/gtksourceview provides it. This is much more similar to vim now.
The only thing missing is that vim only searches that token, not it is also found if it's a substring of other token. I don't really know if the search facilities of gedit can do that, ideas?

Revision history for this message
Stephen Moore (delfick) wrote :

Perhaps if use your method to determine the token and then use the method I was using before to search for that token ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.