vim-python-pep8-indent icon indicating copy to clipboard operation
vim-python-pep8-indent copied to clipboard

Using Vim native plugin manager

Open vidakDK opened this issue 4 years ago • 1 comments

Hello, I'm struggling to install the plugin using the native Vim plugin manager, which seems to expect a structure like:

start
--- config
      --- plugin
            --- xxx.vim

and since in the structure of this project there's no plugin directory the package manager doesn't work.

Does anyone know if I'm doing something wrong, and how to install the package with the Vim native package manager?

EDIT: I was able to enable the plugin by manually injecting a plugin directory, in which I put the python.vim file.

vidakDK avatar May 07 '21 14:05 vidakDK

@vidakDK Do you have have filetype indent on or filetype plugin indent on in your vimrc? You need that in order for vim to look for filetype.vim files in the indent/ directory (:h 30.3 has more info). You shouldn't manually create a plugin/ directory, because files in that directory are executed on every file (not just when &filetype == python).

yongrenjie avatar May 19 '21 19:05 yongrenjie