Consider the following from Meino Christian Cramer:
> Suppose your are starting to learn vim. You have learned to
> edit text basically and to do some tricks to impress your
> friends of the "World of Notepad" category. So nice so far.
>
> Now you want to delete all lines in a file, which conatin a
> certain pattern.
>
> What is "<keyword>" here ?
The keywords here might be pattern, delete, search, find --
depends on how the beginning user is conceptualizing the problem.
As a beginning user, the method would be to search for the pattern
and delete the line. The commands would be /<pattern><cr>
followed by lots of ndd commands.
> helpgrep will find some hits, but I found none telling me the
> magic: g/<pattern>/d
The ndd method is good enough for the beginning user -- it takes
years of using VIM before one gets to :g.
What MCC is asking for is instantaneous knowledge without
experience and is complaining that this is not happening.
MCC is banging his head against reality wishing for "magical"
knowledge -- reality will win.
--Suresh
-----Original Message-----
From: Meino Christian Cramer [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 10:08 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [email protected]
Subject: Re: Extending Vim7 with plugins
From: "Edward Wong" <[EMAIL PROTECTED]>
Subject: Re: Extending Vim7 with plugins
Date: Sat, 20 May 2006 00:36:11 +0800
Hi HTH,
Thanks for the applaus! :O)
IMHO the help files are only for those, who are know already, what
they are searching for. A newbie gets hopelessly lost.
Example:
Q: Why is my "set history=<num>" reset to <num> = 20 regardless where
in .vimrc I will set it?
A: set nocompatible will reset that to 20
A "help history" will no help here.
helpgrep will lead to about 200 "hits", which needs searched
through until the clue is found.
Yes, the learning curve for vim IS steep, but could be flatten a
little without of lost of contents without the hassle to find
anything in this helpfiles.
No question -- EVERYTHING is docunmented in the help files there
but it is an increase to the gradient of the learning curve whitch
does not help anything.
Suppose your are starting to learn vim. You have learned to edit text
basically and to do some tricks to impress your friends of the
"World of Notepad" category. So nice so far.
Now you want to delete all lines in a file, which conatin a certain
pattern.
What is "<keyword>" here ?
helpgrep will find some hits, but I found none telling me the magic:
g/<pattern>/d
_IF_ you know already the "g" trick...ok, you may fnd it in the
helpfiles....but as a newbie?
The hint "read it from the beginning" may be a good one in general
but as the answer to specific questions it is like "Read the source
luke!".
The help files are a nice reference. But it is not suitable for
children and programmers under the age of 18...hrrmm...sorry, wrong
movie...should be: It is not suitable for newbies.
I would like to have a context-helpfile or something like a cross
reference, which maps "natural language search topics" to
"vim speek". Something like
Lagenscheidts encyclopedia
VIM -> English
English -> VIM
The power of an editor is not only defined by the ability to impress
gurus. It is also defined, how fast a newbie will be a guru.
"Make things as simple as possible, but make them not simpler!"
- A.Einstein -
IMHO
Only my two cents, your mileage may vary.
mcc
> haha I like that Meino. :)
>
> The best way to learn scripting language is to read others. Choose
> some simple well known plugins. Vim help
> :help <keyword>
> is always ur vim buddy. You can basically learn everything there. In
> addition, when your cursor is over a vim keyword, simply press <K> and
> help opens the keyword automatically. Pretty cool feature I found.
>
> HTH
>
> --
> Ed
>
> On 5/19/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> > From: John Love-Jensen <[EMAIL PROTECTED]>
> > Subject: Re: Extending Vim7 with plugins
> > Date: Fri, 19 May 2006 10:37:32 -0500
> >
> > > Hi Robert,
> > >
> > > > Is there some tutorial out there for a newbie starting with Vim7 to
> > > > learn how to program for it?
> > >
> > > There's a general tutorial to get you started with Vim at:
> > > http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
> > >
> > > I don't think it covers any Vim 7.0 features.
> > >
> > > And I don't think it covers learning how to program in Vim's scripting
> > > language.
> > >
> > > --Eljay
> > >
> >
> > Q: Where can I buy a car ?
> > A: "Johnsons Inc." offer fine furniture but I dont think they have
> > cars.
> >
> > Sorry...could not resist! :)
> >
> > mcc
> >
>