stosss wrote:
On Tue, Apr 20, 2010 at 5:25 PM, Charles Campbell
<[email protected]> wrote:
stosss wrote:
Again I have read :help visual-mode and :help map as in my other post
about visual-mode I can't figure out how to make it work.
Will some one enlighten me?
vmap x :<c-u>echo "it works!"<cr>
I have no idea what to do with this. I don't understand what it means.
I see you've now replied to Gary with a reasonable description of what
you want, but at least the above map describes an instance of using
visual mode maps.
vmap : a visual mode map command
x : the key being mapped
:<c-u> : clears the command line
echo "it works!" : echoes "it works" to the status line. Your question
above _did_ ask "how to make it work".
<cr> : terminate the command-mode
Use:
select text using ctrl-v & motion (ctrl-q if you're using that
misbegotten mswin stuff).
press x
I don't have further time at the moment to look into your request; maybe
later on.
Regards,
Chip Campbell
--
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
Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en