macos+vim+plug.vim, 为什么不加载~/.vim/autoload/文件夹下的 plug.vim 文件呢

2017-09-30 22:20:37 +08:00
 BBCCBB

有大佬遇到过这样的问题吗,之前一直在 Windows 上使用这样的配置,没有出现过任何问题, 不过 Windows 上是放在$VIM/vimfiles/autoload/下的,我看了 plug.vim 的官网,unix 上面也是放在~/.vim/autoload/文件夹下 vim 就会自动加载。

启动 vi m 的时候, 提示 Plug not a command, 这就是没加载到 plug.vim 文件?

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 29 2017 00:58:02) MacOS X (unix) version Included patches: 1-1150 Compiled by Homebrew Huge version without GUI. Features included (+) or not (-): +acl +cmdline_hist -ebcdic -gettext +listcmds +mouse_sgr +persistent_undo +smartindent +termresponse +wildignore +arabic +cmdline_info +emacs_tags -hangul_input +localmap -mouse_sysmouse +postscript +startuptime +textobjects +wildmenu +autocmd +comments +eval +iconv -lua +mouse_urxvt +printer +statusline +timers +windows -balloon_eval +conceal +ex_extra +insert_expand +menu +mouse_xterm +profile -sun_workshop +title +writebackup -browse +cryptv +extra_search +job +mksession +multi_byte -python +syntax -toolbar -X11 ++builtin_terms +cscope +farsi +jumplist +modify_fname +multi_lang +python3 +tag_binary +user_commands -xfontset +byte_offset +cursorbind +file_in_path +keymap +mouse -mzscheme +quickfix +tag_old_static +vertsplit -xim +channel +cursorshape +find_in_path +lambda -mouseshape +netbeans_intg +reltime -tag_any_white +virtualedit -xpm +cindent +dialog_con +float +langmap +mouse_dec +num64 +rightleft -tcl +visual -xsmp -clientserver +diff +folding +libcall -mouse_gpm +packages +ruby +termguicolors +visualextra -xterm_clipboard +clipboard +digraphs -footer +linebreak -mouse_jsbterm +path_extra +scrollbind +terminal +viminfo -xterm_save +cmdline_compl -dnd +fork() +lispindent +mouse_netterm +perl +signs +terminfo +vreplace 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"

2566 次点击
所在节点    macOS
2 条回复
BBCCBB
2017-10-02 17:04:35 +08:00
我貌似发现了问题所在,等我解决了贴出来
BBCCBB
2017-10-02 17:22:27 +08:00
结案,-------------------

是我判断系统的脚本代码忘了改了,之前在 Linux 上用,
if WINDOWS
call plug#begin(xxx)
else if LINUX
call plug#begin(xxx)
end

将 LINUX 改为兼容 macOS 的 viml 就可以了。。结案了,犯了低级错误

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/394956

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX