* A. Wik <awik32@gmail.com> [2020-12-20 14:39]:
> Browsing a directory listing, sometimes I hit lines like these:
> ./spool/exim/input/1FM8sl-00004n-Ix-H
> ./spool/exim/input/1FM8sn-00004u-OF-D
> ./spool/exim/input/1E9dsQ-00004f-MO-D
> [... thousands of similar lines ...]
>
> How can I use "/" to find the next line not matching the above
> pattern? I've tried the following (and several variations):
> /\(.*exim.input\)\@<!.*
workaround:
open the file with "less" and right after initiating search with '/'
type '!' and the prompt will switch to "Non-match /". now enter
eg "spool.exim.input" and less will skip all those lines. :-)
that's one of the features i dearly miss with vim. oh, well.
Sven
--
LESS 563 | https://github.com/gwsw/less.git
SEARCHING: | http://www.greenwoodsoftware.com/less/
A search pattern may begin with one or more of:
^N or ! Search for NON-matching lines.
^E or * Search multiple files (pass thru END OF FILE).
^F or @ Start search at FIRST file (for /) or last file (for ?).
^K Highlight matches, but don't move (KEEP position).
^R Don't use REGULAR EXPRESSIONS.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201220135346.3r6h3qq4ygqn6kvs%40guckes.net.
Sunday, December 20, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment