Monday, February 20, 2017

Re: Developing a simple vim script:Program-test-tune-loop?

> Hi Jason,
>
> thanks *A LOT* for your two postings!
> That will help me in many ways!!!
>
> GREAT!
>
> Cheers
> Meino

Hey Meino,

One last tip I didn't think of earlier provides rapid access to the help system while editing Vimscript. Use this autocommand in your vimrc:

augroup QuickHelp
autocmd!
autocmd FileType vim setlocal keywordprg=:help
augroup END

Putting this in your vimrc has an useful effect. Placing your cursor on a Vimscript keyword (e.g. "autocmd") and pressing "K" in normal mode will open a help window for that keyword. Try it out and see if it's useful.

Of course, you'll have to read the documentation to find out WHY this works!

Best wishes,
Jason

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: