On 2011-09-09, Peng Yu wrote: > Hi, > > Suppose that I am pasting some c++ code in vim (with some comment > starting with //). The lines after the comments are also automatically > commented, which is very annoy. Is there a way to disable this?
There are a number of ways to disable this, but I think a better approach would be to fix the problem with pasting. There are essentially two ways to paste in Vim: inserting the characters as if you typed them and inserting the text as it was formatted when copied. You seem to be doing the former when you want to be doing the latter. How exactly are you pasting this C++ code? Are you using gvim or vim in a terminal? Windows or Unix? Regards, Gary -- 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
