* [gentoo-user] how to disable an automatic feature in vim?
@ 2007-02-23 23:35 John Blinka
2007-02-24 0:15 ` Philip Webb
0 siblings, 1 reply; 3+ messages in thread
From: John Blinka @ 2007-02-23 23:35 UTC (permalink / raw
To: gentoo-user
Hi, all,
I'm one of those people who don't like editors doing things automatically
because I find the automatic feature often does something other than what
I intended.
I've noticed recently that 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 almost always have to delete the # and
space before doing what I intended.
I don't even know what to call this behavior, so I don't even know where to
look in the vim documentation.
Anybody know how to turn this behavior off? I've got the latest stable
versions
of vim, vim-core, and gentoo-syntax installed on my systems.
Thanks for your help.
John Blinka
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] how to disable an automatic feature in vim?
2007-02-23 23:35 [gentoo-user] how to disable an automatic feature in vim? John Blinka
@ 2007-02-24 0:15 ` Philip Webb
2007-02-24 12:46 ` [gentoo-user] how to disable an automatic feature in vim? - SOLVED John Blinka
0 siblings, 1 reply; 3+ messages in thread
From: Philip Webb @ 2007-02-24 0:15 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] how to disable an automatic feature in vim? - SOLVED
2007-02-24 0:15 ` Philip Webb
@ 2007-02-24 12:46 ` John Blinka
0 siblings, 0 replies; 3+ messages in thread
From: John Blinka @ 2007-02-24 12:46 UTC (permalink / raw
To: gentoo-user
Philip Webb wrote:
>
> 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.
>
Thanks - sometimes the right Google phrase is all it takes. From your
hint I found http://www.bioinspired.com/users/ajg112/computing/vim.shtml
which explains exactly how to do what I want.
John Blinka
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-24 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 23:35 [gentoo-user] how to disable an automatic feature in vim? John Blinka
2007-02-24 0:15 ` Philip Webb
2007-02-24 12:46 ` [gentoo-user] how to disable an automatic feature in vim? - SOLVED John Blinka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox