From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Thu, 22 Jun 2017 23:27:08 +0700 Message-ID: References: <83lgoqzm0v.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498148895 6669 195.159.176.226 (22 Jun 2017 16:28:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2017 16:28:15 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Filipe Silva Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 22 18:28:12 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO4xo-0001UG-1h for ged-emacs-devel@m.gmane.org; Thu, 22 Jun 2017 18:28:12 +0200 Original-Received: from localhost ([::1]:59968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO4xt-00025t-7X for ged-emacs-devel@m.gmane.org; Thu, 22 Jun 2017 12:28:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO4xA-00024y-R6 for emacs-devel@gnu.org; Thu, 22 Jun 2017 12:27:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO4xA-0004W5-2V for emacs-devel@gnu.org; Thu, 22 Jun 2017 12:27:32 -0400 Original-Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:35176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO4x8-0004Vf-Mf; Thu, 22 Jun 2017 12:27:30 -0400 Original-Received: by mail-wr0-x229.google.com with SMTP id k67so30130928wrc.2; Thu, 22 Jun 2017 09:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=xEnBW0UGus0vPEurSzIKiCicq4E4BavlmMgJNAIbyso=; b=iqqkrh2NtKFgYDkyAxt9eUSrj/lHU5HDDISQUBTI9gTdE34ZBNUGkYsfVum3uHYEOd 9Z2XpUEV81hmowJvYnho0r5H2xEcfyyP06NR6cScW8GEtYYQ5zED51mhxFEHRyJMXx2q BvqbZEDYtVoNHo7IQ7GedtuFol3NcbpneBNnfpUdX9JzPso7DGQ+nGODt4O8+lM5QHqj pJ5q+0yh9RI69ur7D3Is9KFowTHeeJ+h3wPSCksrYGVwfFU2F1ATwGkQynEIrDCfagao 09eDf10GpkgqKAjOcQ8+4dEXw8lP3VKnTo57EOk2oscCj33BcYg5cnJPvVXwZzrBbp+F JVIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=xEnBW0UGus0vPEurSzIKiCicq4E4BavlmMgJNAIbyso=; b=Im0vBAUPOgn1O4lu/IndFET7sEKrUdYhwmSVBQ54jFgjoQ777+LOhQuPR76u6B4psr Z9AfuuMHcBddrsAf/RQD4r48Z5qWQka6pylaZ65KKE6t3qucS9afykJOWQ8hHjg6kKD5 AvjtPAweLEqxJGWadzh2ubP21d8r5pQaz3mrBcM8bSXrK+edUEZSR8gIyfxWHxfT7vtL tgWtkiby+5tKoZjoMUetsCoFH+hVzUoZnxjHGml56kI+vWt/aF4phftNJkdeAjSVXRuG vP3EnLuO02UBiihE57/SnN3u1CkpUoL2OXVevoHTtPIx+QPS337RkSjTlr9nuLTTX8c0 wSdg== X-Gm-Message-State: AKS2vOxYSYL3mhdcm3Kd13au8v6W3xlSqK4Fq7QXQ5CeG8QsAyMpd6a5 Se7puR0I/4H8i522myIb1GzLAES8fA== X-Received: by 10.28.107.87 with SMTP id g84mr2373580wmc.63.1498148849622; Thu, 22 Jun 2017 09:27:29 -0700 (PDT) Original-Received: by 10.223.130.170 with HTTP; Thu, 22 Jun 2017 09:27:08 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: TjYpabAi2PZr6aBDGHZtM92zNok X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215887 Archived-At: On Thu, Jun 22, 2017 at 10:02 PM, Filipe Silva wro= te: > Vim implements relative line numbers in a way that the "relativity" aspec= t > is based on the visible lines of the buffer. > Why this is useful? because it gives vim/evil-mode users the power to > rapidly move through the visible lines in the window. If I want to jump t= o a > line in the buffer that I'm interested in, I just have to take a peek at = the > relative number and then I know what to do. I just: 9k, to jump 9 lines > down. This is actually super powerful. What about deleting 9 lines? Does deletion work in terms of visual or logical lines in vim? In Emacs, as far as I can tell, visual line movement only affects movement, killing still works by logical lines. That may mean you=E2=80=99d need relative visual line numbers when you are going to press a movement (//C-n/C-p) key, and relative logical line numbers when you are going to press a kill-line key ( or C-k).