pravim wrote:
> Hi, is there any way in VIM, where i can copy the word under 
> the cursor to the command mode. ex. the cursor in vim is on 
> the word "ThisIsABigFileName". i need some way so that 
> "ThisIsABigFileName" is copied and when i press ":" to come 
> to command mode; i can paste the copied word and proceed to 
> do whatever.

In the command line (after pressing ':'), press Ctrl-r then Ctrl-w, or
press Ctrl-r then Ctrl-a. See:
  :help c_CTRL-R_CTRL-W

Also, you could select something, then press y to yank (copy) it. In the
command line, press Ctrl-r then " (double quote).

When fixed up, the tip for this is:
http://vim.wikia.com/wiki/Word_under_cursor_for_command

John


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

Reply via email to