> 1) How to substitute in multi files? You'll want to read up on the family of windo/argdo/bufdo/tabdo commands. You may also need to ensure that each file gets written, or you have 'hidden' set. E.g.
bash$ cd /path/to/files bash$ vim *.txt :set hidden :argdo %s/foo/bar/g (investigate your changes to make sure they're what you want) :wall :q You can read about them at :help :argdo and similarly. > 2) I'd like the substitue command's pattern field is automatically > substituted by the under cursor word While it doesn't populate automatically, you can use control+R followed by control+W to insert the word under the cursor into the current command-line. :help c_CTRL-R_CTRL-W I use this all the time :) -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
