k-takata / minpac

A minimal package manager for Vim 8+ (and Neovim)
845 stars 30 forks source link

Plugins are loaded in neovim but not in vim #42

Closed ahmedelgabri closed 7 years ago

ahmedelgabri commented 7 years ago

That's my settings in .vimrc

if empty(glob('~/.vim/pack/minpac'))
  silent !git clone https://github.com/k-takata/minpac.git ~/.vim/pack/minpac/opt/minpac
  autocmd VimEnter * call minpac#update() | source $MYVIMRC
endif

set packpath^=~/.vim
silent! packadd minpac

if exists('*minpac#init')
  command! PackUpdate packadd minpac | source $MYVIMRC | call minpac#update()
  command! PackClean  packadd minpac | source $MYVIMRC | call minpac#clean()

  call minpac#init()
  call minpac#add('k-takata/minpac', {'type': 'opt'})
  " ...rest of the plugins
endif

init.vim

set runtimepath+=~/.vim,~/.vim/after
source ~/.vimrc

echo minpac#getpackages()

Inside nvim

['/Users/ahmed/.vim/pack/minpac/opt/minpac', '/Users/ahmed/.config/nvim/pack/minpac/opt/minpac', '/Users/ahmed/.config/nvim/pack/minpac/opt/tagbar', '/Users/ahmed/.config/nvim/pack/minpac/opt/undotree', '/Users/ahmed/.config/nvim/pack
/minpac/opt/vim-easy-align', '/Users/ahmed/.config/nvim/pack/minpac/opt/vim-grepper', '/Users/ahmed/.config/nvim/pack/minpac/opt/vim-sayonara', '/Users/ahmed/.config/nvim/pack/minpac/opt/vim-table-mode', '/Users/ahmed/.config/nvim/pac
k/minpac/opt/vimfiler.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/Despacio', '/Users/ahmed/.config/nvim/pack/minpac/start/LanguageClient-neovim', '/Users/ahmed/.config/nvim/pack/minpac/start/MatchTagAlways', '/Users/ahmed/.conf
ig/nvim/pack/minpac/start/ale', '/Users/ahmed/.config/nvim/pack/minpac/start/auto-pairs', '/Users/ahmed/.config/nvim/pack/minpac/start/blame.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/editorconfig-vim', '/Users/ahmed/.config/n
vim/pack/minpac/start/fzf.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/gen_tags.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/gina.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/goyo.vim', '/Users/ahmed/.config/nvim/pac
k/minpac/start/gruvbox', '/Users/ahmed/.config/nvim/pack/minpac/start/limelight.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/loupe', '/Users/ahmed/.config/nvim/pack/minpac/start/ncm-github', '/Users/ahmed/.config/nvim/pack/minpa
c/start/ncm-lbdb', '/Users/ahmed/.config/nvim/pack/minpac/start/neco-vim', '/Users/ahmed/.config/nvim/pack/minpac/start/nvim-cm-tern', '/Users/ahmed/.config/nvim/pack/minpac/start/nvim-completion-manager', '/Users/ahmed/.config/nvim/p
ack/minpac/start/pinnacle', '/Users/ahmed/.config/nvim/pack/minpac/start/targets.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/terminus', '/Users/ahmed/.config/nvim/pack/minpac/start/tpope-vim-abolish', '/Users/ahmed/.config/nvim
/pack/minpac/start/ultisnips', '/Users/ahmed/.config/nvim/pack/minpac/start/unite.vim', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-buftabline', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-code-dark', '/Users/ahmed/.config/n
vim/pack/minpac/start/vim-commentary', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-css-color', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-deep-space', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-diminactive', '/Users/a
hmed/.config/nvim/pack/minpac/start/vim-easydir', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-eunuch', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-gista', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-gitgutter', '/Users/
ahmed/.config/nvim/pack/minpac/start/vim-github-hub', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-gotham', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-hybrid', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-one', '/Users/a
hmed/.config/nvim/pack/minpac/start/vim-peekaboo', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-polyglot', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-projectionist', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-reason-pl
us', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-repeat', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-signature', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-sleuth', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-sne
ak', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-solarized8', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-speeddating', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-startify', '/Users/ahmed/.config/nvim/pack/minpac/start
/vim-surround', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-tmux-navigator', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-twig', '/Users/ahmed/.config/nvim/pack/minpac/start/vim-visual-star-search', '/usr/local/Cellar/neovim/
0.2.1/share/nvim/runtime/pack/dist/opt/justify', '/usr/local/Cellar/neovim/0.2.1/share/nvim/runtime/pack/dist/opt/shellmenu', '/usr/local/Cellar/neovim/0.2.1/share/nvim/runtime/pack/dist/opt/swapmouse', '/usr/local/Cellar/neovim/0.2.1
/share/nvim/runtime/pack/dist/opt/termdebug', '/usr/local/Cellar/neovim/0.2.1/share/nvim/runtime/pack/dist/opt/vimball']

inside vim

['/Users/ahmed/.vim/pack/minpac/opt/minpac', '/usr/local/share/vim/vim80/pack/dist/opt/dvorak', '/usr/local/share/vim/vim80/pack/dist/opt/editexisting', '/usr/local/share/vim/vim80/pack/dist/opt/justify', '/usr/local/share/vim/vim80/p
ack/dist/opt/matchit', '/usr/local/share/vim/vim80/pack/dist/opt/shellmenu', '/usr/local/share/vim/vim80/pack/dist/opt/swapmouse', '/usr/local/share/vim/vim80/pack/dist/opt/termdebug']

vim --version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 18 2017 08:24:50)
macOS version
Included patches: 1-1300
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
-autoservername  +float           +mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     +termguicolors
-browse          -footer          +multi_byte      +terminal
++builtin_terms  +fork()          +multi_lang      +terminfo
+byte_offset     -gettext         -mzscheme        +termresponse
+channel         -hangul_input    +netbeans_intg   +textobjects
+cindent         +iconv           +num64           +timers
-clientserver    +insert_expand   +packages        +title
+clipboard       +job             +path_extra      -toolbar
+cmdline_compl   +jumplist        +perl            +user_commands
+cmdline_hist    +keymap          +persistent_undo +vertsplit
+cmdline_info    +lambda          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       -python          +viminfo
+cscope          +lispindent      +python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      +lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      +startuptime     -xpm
+eval            +mouse_dec       +statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
+extra_search    -mouse_jsbterm   +syntax          -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -framework AppKit  -L/usr/local/lib -llua -mmacosx-version-min=10.12 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.26.1/lib/perl5/5.26.1/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin -lpython3.6m -framework CoreFoundation  -lruby.2.4.2 -lobjc    

nvim --version

NVIM v0.2.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20171109-46118-9kky38/neovim-0.2.1/build/config -I/tmp/neovim-20171109-46118-9kky38/neovim-0.2.1/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20171109-46118-9kky38/neovim-0.2.1/build/src/nvim/auto -I/tmp/neovim-20171109-46118-9kky38/neovim-0.2.1/build/include
Compiled by brew@Sierra.local

Features: +acl +iconv +jemalloc +tui 
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.1/share/nvim"

Run :checkhealth for more info
ahmedelgabri commented 7 years ago

I had an issue my symlinking between ~/.vim & ~/.config/nvim/

But is there is a way to tell minpack to always use ~/.vim/pack?