Loading ...
Sorry, an error occurred while loading the content.

139158Re: error doing search using :grep or findstr

Expand Messages
  • Ben Fritz
    Sep 14, 2013
    • 0 Attachment
      On Saturday, September 14, 2013 4:12:34 PM UTC-5, dapio wrote:
      > On Saturday, September 14, 2013 8:07:08 PM UTC+1, Ben Fritz wrote:
      > <snip>
      > > If you want to search the current file with findstr instead of Vim's built-in search, you can grep the current file:
      > >
      > > :grep foo %
      > >
      > > Note this searches the on-disk file, you would need to save first.
      > >
      >
      > When I write a file, save it as e.g. ~/d.dd
      >
      > do :grep there %
      >
      > It then exits back to the shell where I had launched vim and the shell then says
      >
      > So it adds the "Shell returned 1" line and the "Press ENTER line"
      >
      > "C:\Program Files (x86)\Vim\vim74>vim
      >
      > shell returned 1
      >
      > Press ENTER or type command to continue"
      >

      Works fine for me. I had to set 'noshellslash' first but this is the default setting.

      >
      > If I press ENTER it adds these lines
      >
      > "(1 of 1): FINDSTR: Cannot open d.dd
      > Press ENTER or type command to continue"
      >

      Did the file actually save? This is a strange error since it is already open in a buffer...

      > that last line is in green, if I push ENTER it goes back into VIM.

      --
      --
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 4 messages in this topic