command not recognized

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

command not recognized

Ni Va

For a convenience way, I isolate all added plugins outside of my Vim distribution directory as this :

- awesomeplugins/                                                                  
 |+ powershell/                                                                    
 |+ python/                                                                        
 |+ vim/                                                                            
+ third_part/                                                                      
+ vim80/                                                                            
+ vimfiles/                                                                        

Then in my vimrc a little script aims to find and add plugins to runtimepath :

" Check available plugins [Vim Python]
let pluginPathList = split(globpath($vim."\\awesomeplugins", "*"), "\n")
let pluginsDict     = {'vim':[], 'python':[]}

for pluginDir in pluginPathList
        if (pluginDir =~ "plugins.vim")
                " set wildignore=*YouCompleteMe*
                let pluginsDict.vim = split(globpath(pluginDir, "*"), "\n", 'wildignore')
                " set wildignore=
        if (pluginDir =~ "plugins.python")
                let pluginsDict.python = split(globpath(pluginDir, "*"), "\n")

" Vim plugins'path
for pluginpath in pluginsDict.vim

        let &runtimepath.=','.pluginpath
        " Add Vim plugin's help documentation
        if isdirectory(pluginpath."/doc") != 0
                exe "helptags ".pluginpath."/doc"



Then in plug in \Vim\awesomeplugins\vim\backup.vim is located this command :  

command! -n=0 -complete=function BckpDir call backup#BackupDir()

When I open Vim, the command is unrecognized, why ?
Thank you

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

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 [hidden email].
For more options, visit