junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
33.89k stars 1.9k forks source link

Error on Plug command in Vim #1229

Closed JustinY97 closed 5 months ago

JustinY97 commented 1 year ago

Explain the problem here ... I am getting an error when I run the :source ~/.vimrc telling me that Plug is not a recognized command. I have added the plug.vim in my .vim/autoload folder. but nothing works.

call plug#begin()

    Plug 'preservim/nerdtree'

call plug#end()

:version gives

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 11 2019 19:07:48)
Included patches: 1-1763
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Small version without GUI.  Features included (+) or not (-):
+acl               -clientserver      -dialog            -find_in_path      -keymap            -modify_fname      -multi_lang        -python3           -syntax            -title             +windows
-arabic            -clipboard         -diff              -float             -lambda            -mouse             -mzscheme          -quickfix          +tag_binary        -toolbar           +writebackup
+autocmd           -cmdline_compl     -digraphs          -folding           -langmap           -mouse_dec         -netbeans_intg     -reltime           -tag_old_static    -user_commands     -X11
-autoservername    +cmdline_hist      -dnd               -footer            -libcall           -mouse_gpm         -num64             -rightleft         -tag_any_white     +vertsplit         -xfontset
-balloon_eval      -cmdline_info      -ebcdic            +fork()            -linebreak         -mouse_jsbterm     +packages          -ruby              -tcl               -virtualedit       -xim
-balloon_eval_term -comments          -emacs_tags        -gettext           -lispindent        -mouse_netterm     -path_extra        +scrollbind        -termguicolors     +visual            -xpm
-browse            -conceal           -eval              -hangul_input      +listcmds          -mouse_sgr         -perl              -signs             -terminal          -visualextra       -xsmp
+builtin_terms     -cryptv            +ex_extra          +iconv             -localmap          -mouse_sysmouse    -persistent_undo   -smartindent       +terminfo          -viminfo           -xterm_clipboard
-byte_offset       -cscope            -extra_search      -insert_expand     -lua               -mouse_urxvt       -printer           -startuptime       -termresponse      -vreplace          -xterm_save
-channel           +cursorbind        -farsi             -job               -menu              -mouse_xterm       -profile           -statusline        -textobjects       +wildignore
-cindent           -cursorshape       -file_in_path      +jumplist          -mksession         +multi_byte        -python            -sun_workshop      -timers            -wildmenu
   system vimrc file: "/etc/virc"
     user vimrc file: "$HOME/.virc"
 2nd user vimrc file: "~/.vim/virc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim80"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/red
hat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python
3.6m -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -Wl,--as-needed -o vim        -lm  -lselinux -lncurses -lacl -lattr -ldl
junegunn commented 1 year ago

Please post the full output of :scriptnames and :messages right after you see the error message.