RE: Can I "visually edit" mapping?
- Keith Roberts wrote:
> > Gary Johnson <garyjohn@...> wrote:See also
> > > For this sort of thing I usually use the command-line history to
> > > recall the map command, then edit the line using the command-line
> > > editing commands or open the command-line window where I can use
> > > normal vim editing commands. [...]
> I use the above technique for one-offs, but for stuff I want to keep in
> my vimrc I do it differently. I have a separate project for Vim, with a
> separate gui window, and all the support files I generally change
> already in windows (courtesy of sessions). I can edit the mapping there
> in the vimrc buffer (particularly if I want to keep multiple iterations
> as examples, commented out, or use something from another mapping).
> When done, ^y$ puts it on the clipboard for me (since I use :set
> cb=unnamed) and I just paste it onto the command line in the other gui.
> [Or, conversely, I'll prototype it using cmdline-editing and then do
> :let @* = @: and paste it into the vimrc buffer. :)]
for a function to execute a line or a range. I find this
more convenient than the command line window for editing
and testing commands in scripts, e.g. maps in my vimrc.