On Thu, May 18, 2006 at 10:20:38AM +0000, Dan Clarke wrote:
> Hi. I've just installed Vim 7. l use MS Windows. I've found a
> problems with the indentations.
>
> You can replicate it by doing the following ...
>
> - Copy a whole word into the clipboard.
> - In a C/C++ file, position the cursor on a line of text that is indented.
> - Press the 'o' key to go onto the next line in insert mode.
> - (The next line should automatically be indented to match the previous
> line).
> - Now press control-v to paste the word from the clipboard.
>
> In previous versions of Vim this pasted word would of appeared indented.
> In Vim7, for some reason the auto indentation seems to of been deleted.
>
> Thanks,
> - Dan
The following patch to $VIMRUNTIME/autoload/patch.vim (simple
enough to apply manually if you do not have a patch program) should fix
this problem.
15c15
< let paste#paste_cmd['i'] = '<Esc>' . paste#paste_cmd['n'] . 'gi'
---
> let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi'
HTH --Benji Fisher