help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does anyone really use emacs in terminal?


From: Jai Dayal
Subject: Re: Does anyone really use emacs in terminal?
Date: Sun, 12 May 2013 16:53:27 -0400

You did not know this already? I stated that Vim has a language of its own
already. If you don't even know Vim basics, you shouldn't comment on Vim.


On Sun, May 12, 2013 at 4:00 PM, Dan Espen <despen@verizon.net> wrote:

> "Pascal J. Bourguignon" <pjb@informatimago.com> writes:
>
> > Hongxu Chen <leftcopy.chx@gmail.com> writes:
> >
> >> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> >>
> >>> Am 12.05.2013 um 00:32 schrieb Jai Dayal:
> >>>
> >>>> so if
> >>>> you're not willing to do a little extra work and expect me to prove
> the
> >>>> most basic trivial things, I'm going to ask you to put something on
> the
> >>>> line, i.e., when I show you Vim's calculus plugins, you never post on
> this
> >>>> mailing list again.  deal?
> >>>
> >>> Vi has an interface to shell level: :!. This way you can use expr,
> >>> bc, or dc to calculate something for vi – or use a GNU Emacs script
> >>> for something less comprehensible…
> >> However this is inconvenient since Vim just forked a new shell
> >> process. Now and then I forget whether the shell's parent process is
> Vim.
> >
> > He reason why it's inconvenient, is because once you fork a child
> > process, it cannot modify the data structure in the parent process
> > anymore.  So ok, you can perhaps calculate, or do calculus (seems
> > somebody doesn't know the difference), but you cannot have those process
> > modify the data in the vim buffers, or in vim memory.
> >
> > Sure, perhaps you can also have a command or a script in vim to load
> > some file modified by those child processes, but that's the point:
> > there's no calculus program implemented in vim, like there are
> > implemented in emacs.  Or spreadsheets, or web browsers, or email
> > readers, or games, etc.
>
> Ah, something to search for that might yield results.
>
> Searching for "vim games", I found this:
>
> http://www.vim.org/scripts/script.php?script_id=172
>
> Downloading and looking at tetris.vim I see that vim has some kind of
> command language, with functions, buffer access, arithmetic:
>
> fu! s:Sort()
>  wh line('.')>1&&matchstr(getline(line('.')-1),'\d\+$')<s:score|move
> -2|endw
>  let s:pos=line('.')
>  g/^$/d
>  11,$d _
>  redr
> endf
>
>
> I'd don't know if it approaches the power of Emacs Lisp, but there
> is enough there for games.
>
> --
> Dan Espen
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]