The Computer Oracle

What is a vim "runtime directory"?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping

--

Chapters
00:00 What Is A Vim &Quot;Runtime Directory&Quot;?
00:37 Answer 1 Score 12
00:47 Answer 2 Score 11
01:15 Accepted Answer Score 20
01:55 Answer 4 Score 2
02:05 Thank you

--

Full question
https://superuser.com/questions/152891/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#vim #gvim

#avk47



ACCEPTED ANSWER

Score 20


Assuming that you're using some flavor of Unix, your personal runtime directory is ~/.vim. This is where you should put any plugin used only by you. If you want other users to be able to access the plugin, put it in the second directory of the 'runtimepath' option, which is usually $VIM/vimfiles. You should not install any plugins into the $VIMRUNTIME directory. That directory is intended for plugins distributed with Vim. If you put other plugins in that directory, or modify files in that directory, you will likely lose those changes when you update your Vim installation.

See

:help 'rtp'
:help $VIMRUNTIME

for more about this.




ANSWER 2

Score 12


Enter :!echo $VIMRUNTIME inside vim to find out.




ANSWER 3

Score 11


There are actually multiple “runtime directories”. Use :set runtimepath? inside Vim to see the directories involved.

Any of them should work, but probably the easiest place to use would be the per-user directory ~/.vim/, which should be first in your Vim's runtimepath.

mkdir ~/.vim; (cd ~/.vim && unzip /path/to/vim-fuzzyfinder.zip)

If you want to install it for all users on the system, then try one of the later directories in the list (one of which is the version specific value that is also in Vim's $VIMRUNTIME variable).




ANSWER 4

Score 2


Late to the game here ... according to the docs

echo VIMRUNTIME=`vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $VIMRUNTIME|quit' | tr -d '\015' `