How to add plugin's "ftplugin"

327 Views Asked by At

I often see Vim plugin have own "ftplugin" directory.
(for example: https://github.com/rust-lang/rust.vim)

How to load these ?

1

There are 1 best solutions below

0
On

You need to set runtimepath to folder that contain rust.vim.

You can set it manually (:set rtp+=path/to/folder)or user plugin manager like: Vim-plug,Vundle.....

:help runtimepath or :h rtp - for detailed help

:set rtp? - to see all runtimepaths