Friday, January 30, 2015

Re: vim - :promptfind + :promptrepl

* Tim Chase <vim@tim.thechases.com> [2015-01-31 04:38]:
> On 2015-01-31 02:45, Sven Guckes wrote:
> > you could add these dialogs to vim - but there is a
> > reason why it hasnt been added. one of these is
> > the consistency with its ancestor "vi" - and another
> > one is that it should work on terminals as well.
> Not only could you add these dialogs
> to vim, they already exist there ;-)
> :help :promptfind
> :help :promptrepl

i had feared that.

$ vim
:promptrepl
E319: Sorry, the command is not available in this version

whew.

oh my.. my system does have a gvim - who knew?
so here is how this dialog looks like:

http://www.guckes.net/vim/pics/gvim_promptfind.png
http://www.guckes.net/vim/pics/gvim.promptrepl.ed.vim.png

so.. use tab and shift-tab to move around, use the space
bar and arrows left/right to toggle those radio buttons,
and then use alt-tab to switch between gvim and the
dialog box (and everything else on that desktop).

now, those key commands are all *really* intuitive
and do not require any instructions because we
had all been born with that knowledge, right??
nipples and all.. (see sig)

come to think of it.. are these keys
described anywhere in the vim docs?

hmm.. when have i ever used "gvim" at all?
way back when i needed a "vi" on the Mac..
then vim-3 was ported to Mac.. i was happy.
but vim-4 was not proted to the Mac.. unhappy.
i was still waiting for Apple Unix to converge
with its interface.. but Mac OS X definitely came
too late. i had migrated to linux way before.

and i still think that porting it to Windows
was giving away a huge reason to switch.
meanwhile i am probably happy that vim
exists for windows. do we really want
to them to call unix services? right.

> Okay, I believe they only work in gvim, but I'd
> suspect that a person having trouble with vim may
> also display a disinclination to use the command
> prompt and thus is using gvim instead of console vim.

gui people probably use something more graphical, anyway.

i find it very amusing that some people won't remember
to search with ignore-case using "/foo/i" - but they
sure know that the command can be found going to the
top menu, left hand side, some menu starting with 'f',
third or fourth submenu down to "find..." and then
in a subsubmenu they will find that extra "hidden"
command with the dialog: "find with ignorecase.." o_O

of course you can force yourself to learn
non-gui commands by turning all menus OFF:

:unmenu! *

(i actually had to look for that command
in the help files as i had never used it)

when i teach (workshops etc) then one of the
first things i do is pull the plug on the mice.
some folks then are completely lost. *sigh*

> >> I still don't know or remember how to do window editing.
> > it is not the program's task to make remember everything.
> > that's *your* task. besides, there's ":help". a lot of it!
> And if only gvim offered some sort of menu to expose all
> manner of functionality so you didn't have to remember it.
> Oh. Wait. It does that too. :-)

of course! :)

> >> The whole prospect of having to copy text from one
> >> file to another with Vim makes me feel miserable
> >> and wish I had a regular editor.
> > a *regular* editor? well, the text editor
> > compendium lists 200+ of them. use one!
> Ah, you (kouzennoki/Xen) must be talking about
> ed(1), the standard editor[1]. Copying text between
> files using ed(1) is far more challenging.

talk about a 42K program not having IDE support. :-P

> As Sven mentions, vim gives you 26+ named registers into
> which you can stash text, and paste that content into
> any additional file you have. Moving text around in vim
> is actually far easier than in any other editor I've used.

some find out earlier than others. and some die before
learning that there already had been a solution. how sad.

> [1] https://www.gnu.org/fun/jokes/ed-msg.html

heh!

Sven

--
"Ed, man! !man ed"
"Ed is the standard text editor."
http://www.guckes.net/ed/ed.png
http://www.guckes.net/talks/ed_the_standard_editor.txt
http://www.greenend.org.uk/rjk/misc/nipple.html

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment