Benji Fisher wrote: > 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'
Looks like a good solution to me. Did someone see any undesired side effects? -- In war we're tough and able. Quite indefatigable Between our quests We sequin vests And impersonate Clark Gable It's a busy life in Camelot. I have to push the pram a lot. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///