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
Ctrl-R Ctrl-W selects a word, i.e., only 'iskeyword' characters.
Ctrl-R Ctrl-A selects a WORD, i.e., anything that isn't a space, tab or
linebreak.
Ctrl-R Ctrl-R is something else; it modifies the Ctrl-R to make it
literal. What it actually does depends on the next key you hit. See
":help c_CTRL-R_CTRL-R" for clarification.
Best regards,
Tony.
--
"Always try to do things in chronological order; it's less confusing
that way."
A generic answer is to work out how to follow the help topics. At ':help
c_CTRL-R_CTRL-W' that I mentioned, we also see CTRL-P. Once used to
Vim's help, you would realise that it's talking about essentially the
same as CTRL-F, so you would follow the 'gf' link (double click if that
is enabled; I would move cursor to 'gf' then press Ctrl-] (and later,
Ctrl-t to return). That leads you to half the answer at 'isfname' (the
other half is likewise found by following links on the original page).
John