DISQUS

Tech-Recipes: Open vim editor to first occurrence of search term

  • oz · 1 year ago
    works beautifully!! :) Thank you!!!!
    (vi on SCO unix )
  • nhmeanie · 1 year ago
    Works fine on vi packaged w/Solaris 10
  • Ryan Jordan · 1 year ago
    I have
    Version 1.79 (10/23/96) The CSRG, University of California, Berkeley.
    running on a
    SunOS cidermill 5.9 Generic_118558-26 sun4u sparc SUNW,Sun-Blade-100
    and it works the same.

    I was able to search and search/replace.

    Can't figure how to execute more than one command from the shell.
    Anyone know how to execute multiple commands at a time in VI?
  • flexinfo · 11 months ago
    it just makes we wonder where these undocumented commands come from!! but its a nice one thanks makes sence really vi +/<search>. Then I would expect

    vi +:g/<old>/s//<new>/g <filename>

    To work and it does !!! thanks for the post and the previous comment that has opened a whole new range of possibilites:

    ~ Merry Christmas and Seasonal Greetings ~~