From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HKkeP-0007r4-Es for garchives@archives.gentoo.org; Sat, 24 Feb 2007 00:20:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l1O0JKF7016069; Sat, 24 Feb 2007 00:19:20 GMT Received: from tomts13-srv.bellnexxia.net (tomts13.bellnexxia.net [209.226.175.34]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l1O0F9vG011562 for ; Sat, 24 Feb 2007 00:15:10 GMT Received: from sympatico.ca ([70.49.166.185]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with SMTP id <20070224001508.WDKW1593.tomts13-srv.bellnexxia.net@sympatico.ca> for ; Fri, 23 Feb 2007 19:15:08 -0500 Received: by sympatico.ca (sSMTP sendmail emulation); Fri, 23 Feb 2007 19:15:07 -0500 Date: Fri, 23 Feb 2007 19:15:07 -0500 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to disable an automatic feature in vim? Message-ID: <20070224001507.GA4698@sympatico.ca> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <45DF7A35.7010003@neo.rr.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DF7A35.7010003@neo.rr.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: 000f3081-36c6-4dff-8c7c-0a1bfa3bf5b0 X-Archives-Hash: 4eda0f347db19fc6bea1acf2811e7702 070223 John Blinka wrote: > when I edit configuration files in /etc, > vim likes to insert a leading "# " in new lines > following existing comment lines. > That's almost never what I want to do > and I have to delete the # and space before doing what I intended. > I've got the latest stable versions of vim, vim-core > and gentoo-syntax installed on my systems. > Anybody know how to turn this behavior off? I tested with a file in /etc & it doesn't happen for me. > I don't even know where to look in the vim documentation. Google 'vim automatic comment' finds sect 30.6 of the Vim User Manual, which covers something similar; also http://ianua.initd.org/vimit/vim63/html/change.html#fo-table which seems to cover what you describe under options 'r' & 'o'. Perhaps this will get you started, if no-one else has more precise info. -- ========================,,============================================ SUPPORT ___________//___, Philip Webb : purslow@chass.utoronto.ca ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies TRANSIT `-O----------O---' University of Toronto -- gentoo-user@gentoo.org mailing list