【问题标题】:Vim Plugins Do Not LoadVim 插件不加载
【发布时间】:2021-11-16 09:40:30
【问题描述】:

我尝试过使用 vim-plug、pathogen,现在是默认的 Vim 8+ 包管理器。我做什么都不会加载这些插件。

目前我在 ~/.vim/pack/plugs/start/[where-i-clone-plugins] 中有一个目录

我的 .vimrc 中的某些内容与包加载冲突吗?我在 ~/

中有一个 .vimrc
" vim configuration file
  
" use Vim mode instead of pure Vi, it must be the first instruction
set nocompatible

" display settings
set encoding=utf-8 " encoding used for displaying file
set ruler " show the cursor position all the time
set showmatch " highlight matching braces
set showmode " show insert/replace/visual mode

" edit settings
set backspace=indent,eol,start " backspacing over everything in insert mode
set nojoinspaces " no extra space after '.' when joining lines
set shiftwidth=4 " set indentation depth to 4 columns
set softtabstop=4 " backspacing over 4 spaces like over tabs
set tabstop=4 " set tabulator length to 4 columns
set textwidth=80 " wrap lines automatically at 80th column

"search settings
set hlsearch " highlight search results
set ignorecase " do case insensitive search...

"file type specific settings
filetype on " enable file type detection
filetype indent on " automatically indent code


set background=dark " dark background for console
syntax enable " enable syntax highlighting

:版本

VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 08 2021 14:21:34)
Included patches: 1-2269
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               +cursorbind        +insert_expand     +mouse_sgr         -ruby              +title
+arabic            +cursorshape       +job               -mouse_sysmouse    +scrollbind        -toolbar
+autocmd           +dialog_con        +jumplist          +mouse_urxvt       +signs             +user_commands
+autochdir         +diff              +keymap            +mouse_xterm       +smartindent       +vartabs
-autoservername    +digraphs          +lambda            +multi_byte        +sound             +vertsplit
-balloon_eval      -dnd               +langmap           +multi_lang        +spell             +virtualedit
+balloon_eval_term -ebcdic            +libcall           -mzscheme          +startuptime       +visual
-browse            +emacs_tags        +linebreak         +netbeans_intg     +statusline        +visualextra
++builtin_terms    +eval              +lispindent        +num64             -sun_workshop      +viminfo
+byte_offset       +ex_extra          +listcmds          +packages          +syntax            +vreplace
+channel           +extra_search      +localmap          +path_extra        +tag_binary        +wildignore
+cindent           -farsi             -lua               -perl              -tag_old_static    +wildmenu
-clientserver      +file_in_path      +menu              +persistent_undo   -tag_any_white     +windows
-clipboard         +find_in_path      +mksession         +postscript        -tcl               +writebackup
+cmdline_compl     +float             +modify_fname      +printer           +termguicolors     -X11
+cmdline_hist      +folding           +mouse             +profile           +terminal          -xfontset
+cmdline_info      -footer            -mouseshape        -python            +terminfo          -xim
+comments          +fork()            +mouse_dec         +python3           +termresponse      -xpm
+conceal           +gettext           +mouse_gpm         +quickfix          +textobjects       -xsmp
+cryptv            -hangul_input      -mouse_jsbterm     +reltime           +textprop          -xterm_clipboard
+cscope            +iconv             +mouse_netterm     +rightleft         +timers            -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/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-BPbmc6/vim-8.1.226
tack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lsel
lcanberra -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -

【问题讨论】:

  • 1.我们可以看到:version 的完整输出吗? 2. 你是使用 Vim 还是 root 用户?
  • @romainl 不以 root 身份使用。更新为 :version
  • 您的 Vim 显然具备所需的条件,并且您在问题中给出的路径是正确的。这是相当令人费解的。

标签: vim plugins


【解决方案1】:

不确定如何解决。解决方法是将我的颜色方案插件作为颜色方案加载到 ~/.vim/colors 或 /usr/share/vim/vim81/colors 中。

vim-plug 不工作,但我得到了其他几个我想与 Pathogen 一起使用的插件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-06
    • 2014-04-20
    • 1970-01-01
    相关资源
    最近更新 更多