On Feb 24, 2:54 am, Lenin Lee <[email protected]> wrote:
> I want to do some operations on selected areas in visual mode in my vim
> script, but I can't find any way to execute commands under visual mode, just
> like "normal p" in normal mode.
Just use :normal p as in normal mode. It will act on the whole
selection, as Vim will automatically insert the approprate range.
See :help command-range as Andreas suggests, and additionally:
:help cmdline-ranges
:help v_:
:help c_CTRL-U
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---