Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #193554

Re: A recomended guide to vim - was {Re: Does bash have a tool ?}

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: A recomended guide to vim - was {Re: Does bash have a tool ?}
Date 2018-03-09 13:40 +0100
Message-ID <vrptv-52l-7@gated-at.bofh.it> (permalink)
References <vpDKh-6pa-1@gated-at.bofh.it> <vpFCp-7Gl-5@gated-at.bofh.it> <vpVxv-1nU-3@gated-at.bofh.it> <vqJkC-2aL-17@gated-at.bofh.it> <vqOtY-5Cp-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/07/2018 03:05 PM, Curt wrote:
> On 2018-03-07, Richard Owlett <rowlett@cloud85.net> wrote:
>> On 03/05/2018 04:27 AM, Richard Owlett wrote:
>>> On 03/04/2018 11:27 AM, Curt wrote:
>>>> On 2018-03-04, Richard Owlett <rowlett@cloud85.net> wrote:
>>>>> My eventual goal is to create a personalized FAQ.
>>>>> To that end I've collected all my outgoing mail which DOES NOT have
>>>>> "Re:" in the Subject into a single file {used standard SeaMonkey tools}.
>>>>>
>>>>> Using a text editor's search&replace function I've placed "KEY1" at the
>>>>> beginning of the body of each message. Similarly, I've placed "KEY2" at
>>>>> the end of each body.
>>>>>
>>>>> Searches led to <http://www.dsl.org/cookbook/cookbook_16.html> which
>>>>> describes tools to do word frequency tasks, primarily with bash
>>>>> builtins.
>>>>>
>>>>> First I need to eliminate the irrelevant text between "KEY2" of the
>>>>> previous message and "KEY1" of the message of interest. It should be
>>>>> straight forard to do in BASIC.
>>>>
>>>> vim (hit escape to get into command mode)
>>>>
>>>> :/KEY2/+1;/KEY1/-1d
>>>>
>>>> will delete everything between KEY2 and KEY1, excluding the
>>>> matching lines.
>>>
>>> Haven't looked up the syntax you referenced. HOWEVER, an initial browse
>>> of vim.org immediately led to a half dozen pages of interest which an
>>> additional half dozen (at least) things that are inherent in vim that I
>>> had not mentioned. As today should be chilly and damp, I suspect where I
>>> will be warm, dry, and becoming educated.
>>>
>>> Thank you.
>>>
>>> [snip]
>>
>> I've installed GVIM using Synaptic.
>> I have browsed vim.org but in the abundance of documentation I haven't
>> appropriate introductory material aimed at my mindset - I learn by doing.
>>
>> For example, GVIM launches with an unreadably small font.
>> I have found the instructions to do ":set guifont=*".
>> However I wish to set things appropriately in ~/.vimrc .
>> I ended up in <http://vimhelp.appspot.com/> a sample script to insert.
>> However I could find no links to how to find how find a list of
>> designation of a font-face.
>>
>> I've not yet parsed the example given me
>>>>> :/KEY2/+1;/KEY1/-1d
>>
>> That may be longer relevant as my reading at vim.org has suggested
>> better ways to approach my problem [ vim appears to have a world-view
>> similar to Digital Equipment's TECO which I used ~40 years ago].
>>
>> Where should I be looking for:
>>    1. how to parse the given example.
> 
> http://vimregex.com/
> 
> The above link seems edifying.

Yes. It also does something valuable [if unintentionally], it gives some 
insight into a 'vim mindset'.

Thank you.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 16:30 +0100
  Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-04 17:10 +0100
    Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 17:30 +0100
      Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-04 18:10 +0100
        Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-04 20:10 +0100
          Re: Does bash have a tool ? Richard Hector <richard@walnut.gen.nz> - 2018-03-05 03:20 +0100
            Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 04:10 +0100
              Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 04:30 +0100
                Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 10:20 +0100
                Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 15:30 +0100
                Re: Does bash have a tool ? Curt <curty@free.fr> - 2018-03-05 16:20 +0100
                Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-05 18:10 +0100
            Re: Does bash have a tool ? rhkramer@gmail.com - 2018-03-05 05:40 +0100
      Re: Does bash have a tool ? John Hasler <jhasler@newsguy.com> - 2018-03-04 19:20 +0100
        Re: Does bash have a tool ? David Wright <deblis@lionunicorn.co.uk> - 2018-03-05 02:00 +0100
          Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 04:20 +0100
      Re: Does bash have a tool ? Erik Christiansen <dvalin@internode.on.net> - 2018-03-05 06:50 +0100
        Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 10:10 +0100
          Re: Does bash have a tool ? Erik Christiansen <dvalin@internode.on.net> - 2018-03-05 11:20 +0100
  Re: Does bash have a tool ? Curt <curty@free.fr> - 2018-03-04 18:30 +0100
    Re: Does bash have a tool ? Richard Owlett <rowlett@cloud85.net> - 2018-03-05 11:30 +0100
      A recomended guide to vim - was {Re: Does bash have a tool ?} Richard Owlett <rowlett@cloud85.net> - 2018-03-07 16:40 +0100
        Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Curt <curty@free.fr> - 2018-03-07 22:10 +0100
          Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Richard Owlett <rowlett@cloud85.net> - 2018-03-09 13:40 +0100
        Re: A recomended guide to vim - was {Re: Does bash have a tool ?} Cousin Stanley <cousinstanley@gmail.com> - 2018-03-09 14:20 +0100
  An answer - was [Re: Does bash have a tool ?] Richard Owlett <rowlett@cloud85.net> - 2018-03-05 01:00 +0100
    Re: An answer - was [Re: Does bash have a tool ?] Forest Dean Feighner <forest.feighner@gmail.com> - 2018-03-05 02:00 +0100
  Re: Does bash have a tool ? Gregory Seidman <gsslist+debian@anthropohedron.net> - 2018-03-05 22:50 +0100

csiph-web