On Thu, Sep 21, 2006 at 07:37:47PM -0700, lll wrote:
>
> Hello:
> I'm using VIM 7.0 in windows OS.
> Whenever I paste something using ctrl-v after typing "o" to insert on next
> line, the pasted string would not follow the indentation of the curser. It
> would paste the string from the beginning of the line.
> This is a new behavior compare to version 6.2. Does anybody know how to set
> the behavior back so ctrl-v will paste the string right where the curser is?
I think this is a problem that has already been fixed. I assume
you are using mswin.vim, which maps <C-v> in Insert mode to do a paste.
Try
:imap <C-v>
When I do this, I get
i <C-V> & x<BS><Esc>:call paste#Paste()<CR>gi
If you are missing the "x<BS>" at the beginning of the mapping, that
would explain the problem. You can fix it by getting the updated files
$VIMRUNTIME/mswin.vim
$VIMRUNTIME/autoload/paste.vim
HTH --Benji Fisher