search

Home  >  Q&A  >  body text

vim: How to select highlighted part in matching expression?

Actually, I want to highlight only the method name in the code, but I don’t want to highlight other characters.
For example: 'methodName'. in public function methodName (x, y)

世界只因有你世界只因有你2773 days ago655

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 16:42:52

    Try this /public function zsw*ze *(
    zsze Mark the beginning and end of a match

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 16:42:52

    Remember that vim has a plug-in to achieve this, lz you might as well google it

    reply
    0
  • Cancelreply