awesome....thanks,
but what is the difference if i use CTRL-r + CTRL-r or CTRL-r + CTRL-a ? both appear to do the same thing!!! Pravin John Beckett-2 wrote: > > > 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 > > > > > > -- View this message in context: http://www.nabble.com/Copying-a-word-to-command-mode-tp21046590p21047144.html Sent from the Vim - General mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
