-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Fetchinson wrote:
> I use * regularly to search for words and the results are nicely > highlighted. Many times I need to copy these terms after the : prompt > (what is its name? command prompt? status bar?) for example when I need to > grep for it in other files or search-and-replace it, etc. > > Is this possible? Hi Daniel, Are you aware that if you leave the search field "blank", i.e. :s//replacement/ then Vim just uses the most recent search text? This means that if you use the * command to search for a word, and then execute the command above, the word will be replaced with "replacement" without you needing to type it in. Similarly, you could do :g// to find all occurrences of the most recent search term in the file. HTH, - -- Benjamin D. Esham | [email protected] “Quidquid latine dictum sit, altum viditur.” (Whatever is said in Latin sounds profound.) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (Darwin) iEYEARECAAYFAkxkIvcACgkQzOC3TdZ2u5r+mACg0qflgICn2u0I7uqvZcVBu4yY 7bkAmwTvXNE9I9o9qJISIuI38fL+24+Y =2YNB -----END PGP SIGNATURE----- -- 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
