Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Everyone's head is a cheap movie show." -- Jeff G. Bone


computers / comp.editors / Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

SubjectAuthor
* Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)HenHanna
+* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Andreas Kohlbach
|`* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)HenHanna
| +- Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Lawrence D'Oliveiro
| `* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Andreas Kohlbach
|  `- Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)LC's No-Spam Newsreading account
`* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Janis Papanagnou
 `* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Andreas Kohlbach
  +- Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Janis Papanagnou
  `* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Andreas Kempe
   +- Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Janis Papanagnou
   `* Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Andreas Kohlbach
    `- Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)Janis Papanagnou

1
Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=118&group=comp.editors#118

  copy link   Newsgroups: comp.editors
Date: Thu, 29 Feb 2024 23:40:46 +0000
Subject: Vim in Usenet? -- ( shorthand for [Paste] - "p"
does the job)
From: HenHa...@dev.null (HenHanna)
Newsgroups: comp.editors
X-Rslight-Site: $2y$10$v7N8cXqLnmOaPn/PBD.7qeScRDR0Mrb5gyhTL51O6hNCmdqhHMJu6
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
Organization: novaBBS
Message-ID: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
 by: HenHanna - Thu, 29 Feb 2024 23:40 UTC

i select a region (of text within Vim) and i have to use my Mouse to copy it (to Clipboard)

Can i do ths by keyboard only? other than...

"+y -------- which is too hard to remember!

____________________

Is there a Usenet Newsgroup where there's discussion of Vi or Vim ?

---- [comp.editors] is not active https://www.novabbs.com/computers/thread.php?group=comp.editors

for Pasting (within Vim) i always Clicked on [Edit] with my Mouse.

but today i discovered that... just hitting "p" does the job.


>>> Vim has tons more to offer than just p! I’d recommend looking through the helpdocs. Basically anything which can be done through the toolbar of gvim can be done directly within vim (through the keyboard) instead.
(Not to mention, there are thousands of different key combinations, commands, etc. which can't be done through the toolbar.)

---------- thanks for the comment!

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<87a5nircf2.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=119&group=comp.editors#119

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Thu, 29 Feb 2024 20:03:29 -0500
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <87a5nircf2.fsf@usenet.ankman.de>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="925e500d6b1f8bb832a9a6bd5c168709";
logging-data="944589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G5YmlUB02IGPwrRc5uXJm"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:GCzsm1cCoHMenENc2gjfja49+pU=
sha1:PpSZ9ivwsY4A+cnx+pe7ot9JTYw=
 by: Andreas Kohlbach - Fri, 1 Mar 2024 01:03 UTC

On Thu, 29 Feb 2024 23:40:46 +0000, HenHanna wrote:
>
> i select a region (of text within Vim) and i have to use my Mouse to copy it (to Clipboard)
>
> Can i do ths by keyboard only? other than...
>
> "+y -------- which is too hard to remember!

Stackoverflow names some solutions at
<https://stackoverflow.com/questions/9166328/how-to-copy-selected-lines-to-clipboard-in-vim>. May
be one or more work for you?

Personally I instead move the cursor to the last line I want to copy,
remember the line number, move to the first line and subtract the
values. Then I type the number of the calculated value and "yy" to get
the lines into the clipboard.

Oh, to have vim show line number you might also need to ass

set laststatus=2 " enables the statusline.
set statusline=%F%m%r%h%w%=(Line\ %l\/%L,\ Col\ %c)\ %P

to your vimrc.

> Is there a Usenet Newsgroup where there's discussion of Vi or Vim ?
> ---- [comp.editors] is not active

But it is. Just not much traffic here.
--
Andreas

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<d5406057b5d2604417000e788fad0557@www.novabbs.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=120&group=comp.editors#120

  copy link   Newsgroups: comp.editors
Date: Fri, 1 Mar 2024 01:40:18 +0000
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "
p" does the job)
From: HenHa...@dev.null (HenHanna)
Newsgroups: comp.editors
X-Rslight-Site: $2y$10$Hssnc0DcvghTY1YhreWXTOVCbhg3rwCqGTqgHiMIdMGjTdbWnrOGK
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com> <87a5nircf2.fsf@usenet.ankman.de>
Organization: novaBBS
Message-ID: <d5406057b5d2604417000e788fad0557@www.novabbs.com>
 by: HenHanna - Fri, 1 Mar 2024 01:40 UTC

thanks!

i guess... Non-Geeks just use MSWord (or its clones) and don't use
text editors and
they've never heard of vi, Vim, or Emacs (or Teco, ...)

i wonder what the Global stats are for Editor-Use...

Does Vim have a [Retro feel] ?

and speaking of the [Retro Look] of the Fixed-width characters....

(Lispy GIF Art) -- When (writing Lisp with Vim) (the *Neon Colors* are Dazzling ! )
https://i.redd.it/gjn8amwym1061.gif
geeky Lisp-Art by HenHanna

----------- any ideas about a Python version of this ???

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<urre29$ta1e$6@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=121&group=comp.editors#121

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Fri, 1 Mar 2024 02:20:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <urre29$ta1e$6@dont-email.me>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<87a5nircf2.fsf@usenet.ankman.de>
<d5406057b5d2604417000e788fad0557@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Mar 2024 02:20:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="08fcff3ec016520633046216dcf0e434";
logging-data="960558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uTabRYbm+L0Y7bECYfSqf"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:TGoug0hNfmilu9S/NCm9shsZXN0=
 by: Lawrence D'Oliv - Fri, 1 Mar 2024 02:20 UTC

On Fri, 1 Mar 2024 01:40:18 +0000, HenHanna wrote:

> Does Vim have a [Retro feel] ?

I prefer to use editors that don’t have modes.

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<urrpsl$139h3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=122&group=comp.editors#122

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Fri, 1 Mar 2024 06:42:44 +0100
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <urrpsl$139h3$1@dont-email.me>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 1 Mar 2024 05:42:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e82c09eb2745f50f6ca7576b44e0e48f";
logging-data="1156643"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZE0ar1wN1w4UNDnryZ+D1"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:C8ydMongmprghh+tdtvTqo+SHto=
In-Reply-To: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 1 Mar 2024 05:42 UTC

On 01.03.2024 00:40, HenHanna wrote:
> i select a region (of text within Vim) and i have to use my Mouse to
> copy it (to Clipboard)
>
> Can i do ths by keyboard only? other than...
>
> "+y -------- which is too hard to remember!

There's a couple different approaches you can choose from.

If memorizing these letters is hard use 'gvim' instead of 'vim';
there you have menus available (and the menu entries also show
the key combination to eventually memorize them if you prefer).

You can also use the mouse in 'gvim' to select a region.

Or you can 'map' your own (better memorizable) keyboard command
if you regularly use and cannot remember some specific commands.

>
> Is there a Usenet Newsgroup where there's discussion of Vi or Vim ?
> ---- [comp.editors] is not active
> https://www.novabbs.com/computers/thread.php?group=comp.editors

This is the right place. - And it is active. You posted and you
got replies quickly. - If there was no traffic just means that
recently there were no questions.

>
> for Pasting (within Vim) i always Clicked on [Edit] with my Mouse.
>
> but today i discovered that... just hitting "p" does the job.

Okay, now mentioning "Edit" it seems you are using already 'gvim'?

Yes 'p' pastes a copied or cut region after the current line, or
use 'P' to paste it before the current line.

Generally I suggest to choose (depending on your editing tasks!)
whether you want to use "simple" (restricted) mouse and menu based
editing or (fast and powerful) keyboard editing.

You can do all sorts of selections, on different types of editing
entities, etc. You can also operate on regions without an explicit
selection. (Best would be to inspect the vim manual or a tutorial,
since it makes little sense to reproduce all in this post or to
post just an arbitrary subset without knowing what sort of editing
you do.)

>
> >>> Vim has tons more to offer than just p! I’d recommend
> looking through the helpdocs. Basically anything which can be done
> through the toolbar of gvim can be done directly within vim (through the
> keyboard) instead. (Not to mention, there are thousands of
> different key combinations, commands, etc. which can't be done through
> the toolbar.)

You obviously got some information already also from another source.
So you may want to come back with specific questions. You're welcome.

Janis

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<87bk7xpzhc.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=123&group=comp.editors#123

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Fri, 01 Mar 2024 13:40:31 -0500
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <87bk7xpzhc.fsf@usenet.ankman.de>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<87a5nircf2.fsf@usenet.ankman.de>
<d5406057b5d2604417000e788fad0557@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="925e500d6b1f8bb832a9a6bd5c168709";
logging-data="1452411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DGxN6n+WXaecqehK8fCMX"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:FE9XxNKlNFxm3GRqi1yQtjJYYKM=
sha1:NPquJb5dtaThf6u9P+/tK+Fn/mE=
 by: Andreas Kohlbach - Fri, 1 Mar 2024 18:40 UTC

On Fri, 1 Mar 2024 01:40:18 +0000, HenHanna wrote:
>
> thanks!
>
> i guess... Non-Geeks just use MSWord (or its clones) and don't use
> text editors and they've never
> heard of vi, Vim, or Emacs (or Teco, ...)
>
>
> i wonder what the Global stats are for Editor-Use...

The worldwide distribution across all text editors?

Suppose something coming with Windows. Notepad?

> Does Vim have a [Retro feel] ?

Not for me. It was default on my first Linux distribution 1997, so I got
used to it. Didn't want to learn nano, joe or similar.

> and speaking of the [Retro Look] of the Fixed-width characters....

Am writing this (in Emacs actually) on a TTY. There's only a fixed font
available.

Curious, your text format looks somewhat strange. From your header you
use "Rocksolid Light". Google says it's a "NNTP front end". Using a BBS
or something? Cool!
--
Andreas

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<878r31pz3h.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=124&group=comp.editors#124

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Fri, 01 Mar 2024 13:48:50 -0500
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <878r31pz3h.fsf@usenet.ankman.de>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="925e500d6b1f8bb832a9a6bd5c168709";
logging-data="1452411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/z8yR3uuEWzUfh6rNGShaq"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:M336sW2qKWABWKfCTl07TkXJOVg=
sha1:T+TLrQkUoGtxQlKQWToR4fDr4Qg=
 by: Andreas Kohlbach - Fri, 1 Mar 2024 18:48 UTC

On Fri, 1 Mar 2024 06:42:44 +0100, Janis Papanagnou wrote:
>
> On 01.03.2024 00:40, HenHanna wrote:
>>
>> for Pasting (within Vim) i always Clicked on [Edit] with my Mouse.
>>
>> but today i discovered that... just hitting "p" does the job.
>
> Okay, now mentioning "Edit" it seems you are using already 'gvim'?

Never heard of gvim. Google says it's a GUI version of vim.

Hence gvim should act just like vim, ignoring possible mouse uses.

> Yes 'p' pastes a copied or cut region after the current line, or
> use 'P' to paste it before the current line.

Also worth mentioning seems to me to append numbers to these.

2yy

yanks (copies) 2 lines (after the cursor).

3PP

would insert 3 clipboard contents above the cursor position.

I often use

1000dd

to clear the whole document below the cursor, assuming it has no more
than 1000 lines. But if,

..

repeats the last command (deletes another 1000 lines below in this case).

vim becomes quite handy once you learned some of its basic shortcuts.
--
Andreas

Vintage arcade video games https://ankman.de/

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<uru4gt$1m4no$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=125&group=comp.editors#125

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sat, 2 Mar 2024 03:56:28 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uru4gt$1m4no$1@dont-email.me>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me> <878r31pz3h.fsf@usenet.ankman.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 2 Mar 2024 02:56:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c43324ab6799d18bb1ca3090e42c5bd0";
logging-data="1774328"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FXySGhuTIRKgh4b9n+v8X"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:TYPf7U6WhYrEkzVMqfvAsCNN0eI=
In-Reply-To: <878r31pz3h.fsf@usenet.ankman.de>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sat, 2 Mar 2024 02:56 UTC

On 01.03.2024 19:48, Andreas Kohlbach wrote:
> On Fri, 1 Mar 2024 06:42:44 +0100, Janis Papanagnou wrote:
>>
>> Okay, now mentioning "Edit" it seems you are using already 'gvim'?
>
> Never heard of gvim. Google says it's a GUI version of vim.

Yes.

>
> Hence gvim should act just like vim, ignoring possible mouse uses.

I don't know about your platform. On Linux (for example) vim starts
a session in the terminal where it's called from, and without any
GUI features, while gvim starts a window wtih a specific GUI version
with gvim menus and whatnot. In gvim you can (for example) use the
mouse to select areas, choose commands from the gvim GUI menus, etc.
The functional (non-GUI) kernel of these two program variants are
the same with its commands in command/insert/ex/visual mode.

Janis

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<urv7v9$d7e$1@nyheter.lysator.liu.se>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=126&group=comp.editors#126

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!nyheter.lysator.liu.se!.POSTED!not-for-mail
From: kem...@lysator.liu.se (Andreas Kempe)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sat, 2 Mar 2024 13:01:29 -0000 (UTC)
Organization: Lysator ACS
Message-ID: <urv7v9$d7e$1@nyheter.lysator.liu.se>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me> <878r31pz3h.fsf@usenet.ankman.de>
Injection-Date: Sat, 2 Mar 2024 13:01:29 -0000 (UTC)
Injection-Info: nyheter.lysator.liu.se; posting-account="kempe";
logging-data="13550"; mail-complaints-to="newsmaster@lysator.liu.se"
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Andreas Kempe - Sat, 2 Mar 2024 13:01 UTC

Den 2024-03-01 skrev Andreas Kohlbach <ank@spamfence.net>:
>
> I often use
>
> 1000dd
>
> to clear the whole document below the cursor, assuming it has no more
> than 1000 lines.

My goto for entire document clearing is dG to clear below the cursor, or dgg
to clear above the cursor. G moving you to the bottom of the document
and gg moving you to the top.

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<urvaku$1ta07$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=127&group=comp.editors#127

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sat, 2 Mar 2024 14:47:09 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <urvaku$1ta07$1@dont-email.me>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me> <878r31pz3h.fsf@usenet.ankman.de>
<urv7v9$d7e$1@nyheter.lysator.liu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 2 Mar 2024 13:47:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c43324ab6799d18bb1ca3090e42c5bd0";
logging-data="2009095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19W0qbNOUUFN3bsMqIrenLR"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:135Rpo5YQl+ejRrDgPYPvC9un44=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <urv7v9$d7e$1@nyheter.lysator.liu.se>
 by: Janis Papanagnou - Sat, 2 Mar 2024 13:47 UTC

On 02.03.2024 14:01, Andreas Kempe wrote:
> Den 2024-03-01 skrev Andreas Kohlbach <ank@spamfence.net>:
>>
>> I often use
>>
>> 1000dd
>>
>> to clear the whole document below the cursor, assuming it has no more
>> than 1000 lines.
>
> My goto for entire document clearing is dG to clear below the cursor, or dgg
> to clear above the cursor. G moving you to the bottom of the document
> and gg moving you to the top.

I'm still using the old Vi commands for that; dG and d1G, respectively.

(I think dgg is one of the Vim additions that I'm not used to because
the Vi form that I'm accustomed to had been efficient enough.)

Janis

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<nycvar.QRO.7.77.849.2403022032001.4654@ntvyhys>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=130&group=comp.editors#130

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@home.invalid (LC's No-Spam Newsreading account)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sat, 2 Mar 2024 20:39:42 +0100
Organization: myself !!
Lines: 15
Message-ID: <nycvar.QRO.7.77.849.2403022032001.4654@ntvyhys>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com> <87a5nircf2.fsf@usenet.ankman.de> <d5406057b5d2604417000e788fad0557@www.novabbs.com> <87bk7xpzhc.fsf@usenet.ankman.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: dont-email.me; posting-host="7e29782692179fb94261c339f014b702";
logging-data="2153661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AMNjxMq5CXhBs9EVuZxAyBm0S4WGT2G8="
User-Agent: Alpine 2.22 (DEB 394 2020-01-19)
Cancel-Lock: sha1:43chpOS/cZDNdwc9IDdvpXBB3YI=
In-Reply-To: <87bk7xpzhc.fsf@usenet.ankman.de>
 by: LC's No-Spam Ne - Sat, 2 Mar 2024 19:39 UTC

On Fri, 1 Mar 2024, Andreas Kohlbach wrote:

>> Does Vim have a [Retro feel] ?
>
> Not for me. It was default on my first Linux distribution 1997, so I
> got used to it. Didn't want to learn nano, joe or similar.

Uh ... I never liked vi when I started with Unix in 1990 (coming from an
experience with editors on IBM mainframes, HP RTE and VAX VMS mini's
:-)). Nor I liked the GUI-notepad-likes available on thos Unixes. My
preferred editor has always been and still is THE, The Hessling Editor,
a clone (available for Unx, Linux and I guess even Windows) of the IBM
VM/CMS XEDIT ... google for "orthodox editors" :-)

Only for occasional quick things I stand pico.

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<87a5ngnm0p.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=135&group=comp.editors#135

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sat, 02 Mar 2024 20:26:30 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <87a5ngnm0p.fsf@usenet.ankman.de>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me> <878r31pz3h.fsf@usenet.ankman.de>
<urv7v9$d7e$1@nyheter.lysator.liu.se>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="7bd3690c145a866d39c4a7908b42e395";
logging-data="2278498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IHdtuQVGCta1/5Vu9NmLv"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:e1Jeik031Ae5hVrdP2gly7tBaaI=
sha1:FID8e2jooB+Nzcrw/GWDRZv/1j8=
 by: Andreas Kohlbach - Sun, 3 Mar 2024 01:26 UTC

On Sat, 2 Mar 2024 13:01:29 -0000 (UTC), Andreas Kempe wrote:
>
> Den 2024-03-01 skrev Andreas Kohlbach <ank@spamfence.net>:
>>
>> I often use
>>
>> 1000dd
>>
>> to clear the whole document below the cursor, assuming it has no more
>> than 1000 lines.
>
> My goto for entire document clearing is dG to clear below the cursor, or dgg
> to clear above the cursor.

Very nice. Thanks.

> G moving you to the bottom of the document and gg moving you to the
> top.

I knew these. But not that they also work in combination with d or y.

Sweet!
--
Andreas

Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

<us0np5$2a0fp$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=136&group=comp.editors#136

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)
Date: Sun, 3 Mar 2024 03:37:24 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <us0np5$2a0fp$1@dont-email.me>
References: <fa6c06bbfead27f62d6cbe0bac91f3b2@www.novabbs.com>
<urrpsl$139h3$1@dont-email.me> <878r31pz3h.fsf@usenet.ankman.de>
<urv7v9$d7e$1@nyheter.lysator.liu.se> <87a5ngnm0p.fsf@usenet.ankman.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 3 Mar 2024 02:37:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9cf4f5d1f82e1da0b586af3d8bcb1d94";
logging-data="2425337"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19u1Jcmnr1Up7G362exdH7y"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:sqBg1xevpEEB/tTgR7wo9sPldlY=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87a5ngnm0p.fsf@usenet.ankman.de>
 by: Janis Papanagnou - Sun, 3 Mar 2024 02:37 UTC

On 03.03.2024 02:26, Andreas Kohlbach wrote:
>
>> G moving you to the bottom of the document and gg moving you to the
>> top.
>
> I knew these. But not that they also work in combination with d or y.

That's actually one central design principle of Vi (and successors).
You have all sorts of movement commands and you have some operators
(d, y, c, <, >). What you see with commands like 'd1G' is just a
composition of the 'd' operator with a '1G' movement.
This composition is one aspect why Vi, Vim, etc. are so powerful.

Janis


computers / comp.editors / Re: Vim in Usenet? -- ( shorthand for [Paste] - "p" does the job)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor