Monday, June 12, 2023

Re: documenting my own plugins?

On 2023-06-12, Jose Caballero wrote:
> Indeed, this worked:
>
>       :set runtimepath=~/.vim/ftplugin/foo,$VIMRUNTIME
>
> I assume I can add it to .vimrc, so I don't need to do it every time. 
>
> Thanks a lot for your help !!!

You're welcome. I'm glad that worked.

By default, 'runtimepath' contains more that just $VIMRUNTIME,
though. as you can see from ":help 'runtimepath'". If you want to
put ~/.vim/ftplugin/foo in your 'runtimepath', then a better
solution would be this:

:set runtimepath+=~/.vim/ftplugin/foo

or, if you want your directory to be first, this:

:set runtimepath^=~/.vim/ftplugin/foo

And yes, you can put that in your vimrc.

Regards,
Gary

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230612162430.GA6600%40phoenix.

No comments: