Saturday, May 6, 2017

command not recognized

Hi,

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/
_vimrc

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=
endif
if (pluginDir =~ "plugins.python")
let pluginsDict.python = split(globpath(pluginDir, "*"), "\n")
endif
endfor


" 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"
endif

endfor

_____________

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
Niva

--
--
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 http://www.vim.org/maillist.php

---
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: