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

Multi-file search and replace

Expand Messages
  • Geoff Caplan
    Hi folks Mikolaj wrote: MM Find is very good tool for creating projects in Vim. Vim name for this MM is sessions. Create eg. html (or php) project: MM vim
    Message 1 of 6 , Jul 31 2:46 AM
      Hi folks

      Mikolaj wrote:

      MM> Find is very good tool for creating "projects" in Vim. Vim name for this
      MM> is sessions. Create eg. html (or php) project:

      MM> vim `find -type f | grep -v "gif$\|jpg$\|png$"`

      MM> Now you have opened all no graphic files in current directory and below.
      MM> They are on your args and buffers list so you can make all :argdo, :bufdo
      MM> commands. Save it with

      MM> :mksession project.vim

      MM> And you can enter project with

      MM> vim -S project.vim

      MM> Wonderful thing :)

      Great tip - thanks. Thought I should post it to the list so it gets in
      the archive.

      --
      Geoff Caplan
      Advantae Ltd

      mailto:geoff@...
      http://www.advantae.com
    Your message has been successfully submitted and would be delivered to recipients shortly.