stone <[email protected]> [09-09-27 07:24]:
> Hi, vim use!
> 
> Now I have two trouble when I using vim:
> 
> 1.
> How can I copy and paste a word in a souce file.
> 
> for example:
> in this sentence:
> I love emacs.
> 
> I want relace the emacs to vim.
> 
> so I use "yw" to copy the "vim" word from another sentence.
> 
> And now I must use "dw" to delete the "emcs" word, then I use " "0p " to
> copy the "vim" in reg 0 to paste the word "vim".
> 
> Is there a simpler and faster way?
> 
> 2.
> How can I modify all the symbols( such as: function name, class name) which
> I have founded by cscope.
> 
> for example:
> When I want to modify a function name. And now I must use cscope to find all
> the reference. Then I modify the function name file by flie.
> 
> Is there a simpler and faster way?
> 
> --
> 
> 
> > 

Hi stone.

I often use this:

1: Go to the beginning to the word you want to yank.
2: :vey
3: Go to the beginning to the word you want to replace.
2: :vep

HTH
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to