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

Re: [Sheflug] vi, emacs, sharp sticks



>>>>> "Chris" == Chris J/#6 <sixie [at] nccnet.co.uk> writes:

    >> Surely vi has some kind of mark and a notion of "the current
    >> region"?

    Chris> How do you define "the current region"? vim (I've not
    Chris> checked pure vi) allows you to set marks in a file which
    Chris> act as bookmarks into a file or sets of files using
    Chris> ':m{a-zA-Z}'. But they're only set on a line - if you
    Chris> delete the line, the mark dissapears. Similarly if you set
    Chris> a mark up with, say, :ma and then issue ":'a,.!sort" the
    Chris> mark will dissapear (probably because doing the sort
    Chris> deletes the line with the mark on before re-inserting it).

Emacs is a little bit more anal about preserving the mark.  But the
kind of mark you describe for vim is perfectly usable for most
operations that emacs users do.  You don't need a "current" region
with that kind of command mode; I forgot about that aspect.  Named
bookmarks are just as efficient.

    Chris> Of course not ... just be careful to dodge the wet sponges
    Chris> I throw your direction O:-)

"I may be short, but I'm also slow."


-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.