Friday, April 20, 2012

Re: cmap to use a substitute command

On Friday, April 20, 2012 12:53:36 PM UTC-5, David Fishburn wrote:
> Good Morning.
>
> Vim 7.3.1-421 Windows 7 64-bit.
>
> I want to create a command mode mapping which will do a substitution on
> what is already typed in.
> I am just wondering how to get access to the command line?
>
> My searches through the help which was based on cmap and mapmode-c
> didn't reveal anything I could use.
>
> Thanks,
> Dave

There's the getcmdline() function, but I don't see a way to set it.

As a workaround you could enter the command window and run a simple substitute command.

--
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

No comments: