Article View: news.software.readers
Article #146527Re: vim in insert mode when its opened to post
From: Max
Date: Sat, 17 Apr 2004 08:32
Date: Sat, 17 Apr 2004 08:32
98 lines
4735 bytes
4735 bytes
On 04-16-2004, in news.software.readers,
Blinky the Shark <no.spam@box.invalid> wrote:
> Max wrote:
>> On 04-15-2004, in news.software.readers,
>> Blinky the Shark <no.spam@box.invalid> wrote:
>
>>> Scott Eberl wrote:
>>>> This is a small yet largely annoying issue. When I post using
>>>> vim launched by slrn I always have to hit I before I can type
>>>> since I need to put VIM into insert mode. Is there a switch I
>>>> can pass it via my .slrn.conf file to do this for me?
>
>>> Couldn't find anything; checked in comp.editors. Response was:
>
>>> vim -c startinsert
>
>> Yep. That's the answer. Would you believe that prior to posting
>> my other reply, I actually typed ':he insert' followed by crtl-d.
>> There it was, staring me right in the face and I completely
>> missed it. Not good.
>
> That's a place I'm weak, even though I try help first, too. When
> I do that, I get (snipped)
>
> *i* *insert* *<Insert>*
[All things below apply to my vim 6.2 (patched to #314)]
I'm not so sure you need to be so quick in labeling yourself "weak".
When typing ':he insert(CTRL-D)' <- (Note the ctrl-d needs to occur
the split second after you typed "t"), you should have seen a list
similar to this: [condensed to fit into line width]
#---
insert** inserting-ex tcl-buffer-insert c_<Insert>
:inser** insert_expand Insert i_<Insert>
insert** inserting-file <Insert> 'iminsert'
insert** +insert_expand Insert-mode :stopinsert
^^^^^^^^^^^
'inser** delete-insert <C-Insert> :startinsert
^^^^^^^^^^^^
insert** scroll-insert <S-Insert> 'noinsertmode'
#---
{See what I missed?}
At this point you could've backspaced and typed in 'startinsert'
whilst still on the :he command line. This would have yielded the
following:
:he startinsert
*:start* *:startinsert*
:star[tinsert][!] Start Insert mode just after executing this
command. Works like typing "i" in Normal mode.
When the ! is included it works like "A", append
to the line. Otherwise insertion starts at the
cursor position. Note that when using this
command in a function or script, the insertion
only starts after the function or script is
finished. {not in Vi} {not available when
compiled without the +ex_extra feature}
> But nothing about that says "here's a startup option/switch". To
> me, that all looks like stuff you can do from within vim.
True. You were on the wrong page. Close, but no cigar (Max now
shakes his own hand). Hindsight is at play here, but one could have
gotten away with a mere [:he start{ctrl-d}] -> (See the resulting
happy list of help topics) and ended up with the same result.
> How does one know, from that help entry, that there's a command
> line switch/option there?
I'd suppose one doesn't. You were on the wrong page anyway. (g)vim
--help yields:
[...]
-c <command> Execute <command> after loading the first file
[...]
Just a matter of experimentation isn't it? If I'm able to 'execute'
a command within vim, would it not seem logical I'd be able to pull
off a similar thing from the command line? "(g)vim -c <command>"
implies I can (true or not - Up to us to find out eh?). Still, a
"PITA" though. [shrug]
Carry on pilot... ;)
Max
--
____ ____ ____
||M |||A |||X ||
||__|||__|||__||
|/__\|/__\|/__\|
Technical Details
Message-ID:
<slrnc81qp2.pta.argos2112@nowhere.invalid>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!host-216-76-230-10.jan.bellsouth.NET!not-for-mailReferences:
<slrnc7tokt.nk9.scott@turncoat.airea420.com> <slrnc7ud50.fbv.no.spam@thurston.blinkynet.net> <slrnc7vbka.14r.argos2112@nowhere.invalid> <slrnc80758.78g.no.spam@thurston.blinkynet.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnc81qp2.pta.argos2112@nowhere.invalid> Subject: Re: vim in insert mode when its opened to post Date: Sat, 17 Apr 2004 08:32:40 +0000 From: Max <argos2112@bellsouth.net> References: <slrnc7tokt.nk9.scott@turncoat.airea420.com> <slrnc7ud50.fbv.no.spam@thurston.blinkynet.net> <slrnc7vbka.14r.argos2112@nowhere.invalid> <slrnc80758.78g.no.spam@thurston.blinkynet.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!host-216-76-230-10.jan.bellsouth.NET!not-for-mail Newsgroups: news.software.readers Lines: 98 NNTP-Posting-Host: host-216-76-230-10.jan.bellsouth.net (216.76.230.10) X-Trace: news.uni-berlin.de 1082190760 5025996 I 216.76.230.10 ([214296]) User-Agent: slrn/0.9.8.0 (Linux)