On 06/02/09 02:32, R. Hicks wrote:
> help autocmd
> help scripts
> help variables
> help functions
> help usr_41.txt
>
> I have looked and I was wondering if those were the "best" help files to
> learn how to use vimscript and to program vim.
>
> Robert

I think that (after running the vimtutor for a basic course in how to 
_use_ Vim) you should start at usr_41.txt and proceed from there. (BTW 
":help scripts" led me to a helptag named *debug-scripts* which may or 
may not be what you want. OTOH ":help script" gets me to the 
introduction to usr_41.txt.)

IMHO programming Vim and using it are not two tightly separate 
activities, since most commands usable in scripts can be entered at the 
Vim command-line (after hitting the colon key), and most Normal-mode 
commands usable at the keyboard can also be used in scripts (ex-commands 
directly, the other ones as operands of the ":normal" command).

You can see examples of how the language used to program Vim looks like 
by looking at any *.vim script distributed with Vim (note, however, that 
keymaps are in a special format). If you don't know where to start, try

        :view $VIMRUNTIME/vimrc_example.vim

which is an example vimrc. You can even include it in your own vimrc by 
writing

        runtime vimrc_example.vim

near the top of your vimrc, then adding (if desired) other commands, 
mostly after that line, to tweak its settings.


Best regards,
Tony.
-- 
I was born because it was a habit in those days, people didn't know
anything else ... I was not a Child Prodigy, because a Child Prodigy is
a child who knows as much when it is a child as it does when it grows
up.
                -- Will Rogers

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to