On 07/02/09 05:14, naquad wrote:
> Hello.
>
> I've read
>
> :help
> usr_41.txt
> autocmd
> scripts
> variables
> functions
> debug-scripts
>
> but still I can't write anything smart :(
> are there any full size books/guides or sort of about programming vim?
>
> Regards, Daniel Fort.

If you can't write anything smart, write someting dumb then. And after 
that, something less dumb. Do you have a vimrc? No? Then start one. You 
do? Then you've already done some Vim programming, for the vimrc is a 
Vim script in its own right. If you haven't got one, here's what I 
suggest as a starter:


--------8<--------8<--------8<--------8<--------8<--------8<--------8<
" Vim settings file for naquad

" Uncomment the following to force English-language menus and messages
" regardless of the system locale
if 0
        if has('multi_lang')
                if has('unix')
                        language messages C
                else
                        language messages en
                endif
        endif
endif

" get a lot of useful settings from the example vimrc
runtime vimrc_example.vim

" add additional customizations below this line
 >8-------->8-------->8-------->8-------->8-------->8-------->8--------

Start Vim, and type

        :e ~/.vimrc

in Unix/Linux, or

        :e ~/_vimrc

on Windows. If it opens an empty window, you can copy the above in your 
mailer, and paste it using either Edit => Paste (in gvim) or

        :0put +

(in any GUI or console version of Vim which supports the clipboard).

If you already have a vimrc, its contents will be displayed; you may or 
may not want to change it.

Then restart Vim with this new or edited vimrc, and type

        :options

This will show you a page with all the possible options, and how they 
are currently set. As told in the preamble to that page, you can hit 
Enter on a "help line" (with the option name in green) to see the help 
for that option. If you decide to change that option, you can do it by 
hitting Enter on a "set" line, which will toggle a boolean option or ask 
you what you want for another option. Then copy the setting to your 
vimrc (for a boolean option, copy only the desired setting, not the 
opposite value). This way you can customize the workings of your own Vim 
to your heart's delight. Have fun!

For more involved work, you may come to this group, ask a question 
saying clearly what you want to achieve, and most likely someone (or 
some people) will jump up with ideas.

Or, as has already been said, you may go to http://vim.wikia.com/ and 
click the "Random page" link. You will get a random tip, which may or 
may not be useful to you right now, but you will probably learn 
something from it, which may be useful later. Accumulating such "random 
tips" is like reading an encyclopedia by the Monte-Carlo method (one of 
my favourite pastimes when I was in grade school): open the 'pedia at a 
random page and read what you find there. If there is something you 
don't understand, look it up. Before you realize it, it will be time for 
dinner, time to go to school, or time for bath and bed.


Best regards,
Tony.
-- 
Albert Einstein, when asked to describe radio, replied: "You see, wire
telegraph is a kind of a very, very long cat.  You pull his tail in New
York and his head is meowing in Los Angeles.  Do you understand this?
And radio operates exactly the same way: you send signals here, they
receive them there.  The only difference is that there is no cat."

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

Reply via email to