[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Closing completed files when editing many
From: |
Thomas Dickey |
Subject: |
Re: Closing completed files when editing many |
Date: |
Wed, 22 Mar 2023 04:13:59 -0400 |
On Wed, Mar 22, 2023 at 05:20:06AM +0000, James Haggerty wrote:
> Hi,
>
> One of the things I usually do with editors is go through a number of
> files making related edits. e.g.
>
> vile a.c b.c c.c
>
> I would have assumed the natural way to do this in vile would be to
> remove the current buffer when I've finished with it, but there appears
vi's
:n
walks through to the "next" buffer. The "autobuffer" mode (see help)
controls the order in which "next" will go.
> to be no default key binding for this. I'd have to either use * and ^X-k,
> or use :ki and name the buffer/file. Is this correct? This makes me
> think I'm approaching the problem in the wrong way for vile.
you could do
:ki *.c
or (in the buffer list), use a repeat-count with ^X-k, e.g., putting the
cursor on the "0", do 2 ^X k
Size Buffer name Contents
------- -------------------- ---------------------------------------------
0# 811 a.c ./a.c
1 811 b.c ./b.c
2 968 mutt-prl-debianold-6
/var/tmp/mutt-prl-debianold-64-1001-4271-12414928227669892054
3 811 c.c ./c.c
Current dir: /tmp
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature