From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: make undo operate as in (no flames please) vim Date: Sat, 24 Jan 2009 18:43:50 -0600 Organization: Still searching... Message-ID: <87eiyusrn4.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232844292 2808 80.91.229.12 (25 Jan 2009 00:44:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 00:44:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 01:46:04 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQt8Q-000377-Oh for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 01:45:59 +0100 Original-Received: from localhost ([127.0.0.1]:43136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQt79-0003qE-13 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jan 2009 19:44:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQt6k-0003kw-R0 for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 19:44:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQt6j-0003iW-VA for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 19:44:14 -0500 Original-Received: from [199.232.76.173] (port=51654 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQt6j-0003hv-Jr for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 19:44:13 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:56625 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQt6j-00065r-6k for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 19:44:13 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LQt6h-00008z-Md for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 00:44:11 +0000 Original-Received: from c-98-215-178-6.hsd1.in.comcast.net ([98.215.178.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Jan 2009 00:44:11 +0000 Original-Received: from reader by c-98-215-178-6.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Jan 2009 00:44:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-6.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Wjj1XVu/WPHPZaPW2ClPVSRW13o= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61618 Archived-At: I've used emacs for a goodly number of yrs now. I'd say though that my usage is considerably less sophisticated than many users here. One thing I've actually come to dread is using undo. I've never taken the time to get this setup in some way that seems more useful to me. I always just go for the `C-x u' repeatedly or else preface with some number (C-u 20 C-x u) to get close if lots of undos are needed. I often hit `C-x-u' (forgetting to release the C-x part) which brings me to `upcase-region', which I keep disabled; that means I'm whisked to a lengthy message about using `upcase-region' and generally completely disrupting what I was doing. This is of my own making and not a fault of emacs, but still I'd like to have the undo behavior I find in vim. It seems way closer to what I usually want. Where I press some keycombo and a whole sentence or whatever is undone. Instead of `C-x u' repeatedly to undo the same line or even paragraph of type. I don't want to go to viper-mode. That seems a bit drastic, but can anyone tell me how to setup `undo' to behave more like the undo found in vim?