2011-01-18 13 views

risposta

1

AFAIK questo non è possibile. Tuttavia è possibile iniziare a digitare una parola che si trova in un buffer aperto e premere ctrl-xctrl-n per avviare la ricerca di una parola di questo tipo in tutti i buffer aperti.

+0

mmm ... più scadente. Sono d'accordo sul fatto che il ctrl-x ctrl-n è comunque utile. – Alex

+0

Spiacente, non usare ctrl-x, basta premere ctrl-n. Ctrl-x ctrl-n cerca solo nel buffer corrente, mentre ctrl-n cerca in tutti gli altri buffer. – Benoit

+0

Ho appena scoperto di mettere il cursore su un'opera e di premere *, evidenzia ogni occorrenza di quella parola nel documento. – Alex

-1

da :help grepadd

      *:grepa* *:grepadd* 
:grepa[dd][!] [arguments] 
      Just like ":grep", but instead of making a new list of 
      errors the matches are appended to the current list. 
      Example: > 
       :call setqflist([]) 
       :bufdo grepadd! something % 
      The first command makes a new error list which is 
      empty. The second command executes "grepadd" for each 
      listed buffer. Note the use of ! to avoid that 
      ":grepadd" jumps to the first error, which is not 
      allowed with |:bufdo|. 
      An example that uses the argument list and avoids 
      errors for files without matches: > 
           :silent argdo try 
        \ | grepadd! something % 
        \ | catch /E480:/ 
        \ | endtry" 
+0

Non sono sicuro che questo faccia quello che ho chiesto. o, se lo fa ancora non riesco a capirlo. in particolare, non è una ricerca incrementale. (su Windows genera un findstr) – Alex

Problemi correlati