10 years ago
Search for foo in the current file, enter all matches containing foo into the location list and open it. Use :lnext or :lprevious to navigate or better still Tim Pope's Unimpaired plug in.
:lvim foo % | :lopen
Martínez Ortiz Saúl Axel 6 years ago
I just had forgotten de lopen in my mappings. Thanks
Dave Allen 10 years ago
Using the location list