This sounds an awful lot like select mode to me.  Verify before you hit :
that you're in 'VISIUAL' not 'SELECT' mode.  Investigate the 'selectmode'
option and 'behave' command to see why this might be getting turned on.
 It's meant to mimic Microsoft Windows selection model behavior, but I find
it very confusing..

If you *want* to use select mode but switch to visual for something, ctrl-o
will switch to visual for one command, ctrl-g will straight up switch.  If
you accidentally erase something in select mode when you meant to hit
ctrl-[og] to get to visual first, you can undo it by hitting 'u', then 'gv'
to regain the previous selection (but you'll still be in select mode, so
don't forget the ctrl-o or ctrl-g this time ;)).

On Thu, Sep 29, 2011 at 7:07 AM, bterkuile <bterku...@gmail.com> wrote:

> Hi there,
>
> I am now trying macvim and something is not working anymore. A normal
> operation for me is to select text and do a search and replace on
> this. My actions for this are:
> 1. Select text
> 2. type:     :s/foo/bar/g (Or any of all the other options that make
> vim cool)
>
> In macvim however when I want to type :s/foo/bar/g when a selection is
> made the colon is inserted (and yes, I am in command mode)
>
> How can I fix this? Or is there even a better way of doing this
> (meaning typing commands, not just replacing text). I cannot find the
> solution on google.
>
> Thank you!
>
> Benjamin
>
> --
> You received this message from the "vim_mac" 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
>

-- 
You received this message from the "vim_mac" 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

Reply via email to