mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
Vim tutorial finished
This commit is contained in:
38
vim-plugin.txt
Normal file
38
vim-plugin.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
Plugins:
|
||||
----------
|
||||
|
||||
Command: :set packpath
|
||||
|
||||
To see all the path vim will search for plugins.
|
||||
|
||||
--> Where Packages are stored:
|
||||
|
||||
{packpath}/pack/{package-name}
|
||||
|
||||
Examples:
|
||||
/home/junet/.vim/pack/git-plugins
|
||||
/home/junet/.vim/pack/myplugins
|
||||
|
||||
{packpath}/pack/{package-name}/start/{plugin-name}
|
||||
|
||||
To load a package along with all the plugins automatically when
|
||||
vim starts. Use start/ directory inside package-directory.
|
||||
|
||||
|
||||
{packpath}/pack/{package-name}/opt/{plugin-name}
|
||||
|
||||
To not load automatically, but remain available to load
|
||||
during vim runtime.
|
||||
|
||||
To load a plugin in opt/ directory. Use command:
|
||||
|
||||
:packadd {plugin-directory-name}
|
||||
|
||||
|
||||
For example:
|
||||
|
||||
:packadd vim-fugitive
|
||||
|
||||
This searches for "pack/*/opt/vim-fugitive" in the packpath.
|
||||
Example: ~/.vim/pack/git-plugins/opt/vim-fugitive
|
||||
|
||||
Reference in New Issue
Block a user