Open chenxiqiyuan opened 6 years ago
@chenxiqiyuan 请问你用的什么操作系统?什么版本?
@chenxiqiyuan请问你用的什么操作系统?什么版本?
Ubuntu16.04 用VM15.0.1安装的
刚刚使用git,不小心给关闭问题了,,,
@chenxiqiyuan vimplus的安装程序会自动下载vim8,ubuntu16.04默认是vim7.4,可能是vim么有安装成功的原因,你检查看看。
@chenxiqiyuan vimplus的安装程序会自动下载vim8,ubuntu16.04默认是vim7.4,可能是vim么有安装成功的原因,你检查看看。
chenxi@chenxi-virtual-machine:~$ apt-cache showpkg vim Package: vim Versions: 2:7.4.1689-3ubuntu1.2 (/var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_xenial-security_main_binary-amd64_Packages) Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-amd64_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-i386_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: en File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_i18n_Translation-en MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-amd64_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-i386_Packages MD5: 59e8b8f7757db8b53566d5d119872de8
2:7.4.1689-3ubuntu1 (/var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-amd64_Packages) Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-amd64_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_binary-i386_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: en File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial_main_i18n_Translation-en MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-amd64_Packages MD5: 59e8b8f7757db8b53566d5d119872de8 Description Language: File: /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-i386_Packages MD5: 59e8b8f7757db8b53566d5d119872de8
Reverse Depends: vimhelp-de,vim 2:7.5 vim-syntax-docker,vim vim-syntastic,vim hollywood,vim vim:i386,vim vim-runtime,vim vim-common,vim ubuntu-server,vim vimhelp-de,vim 2:7.4 byobu,vim vim-vimoutliner,vim vim-tlib,vim vim-tabular,vim vim-syntax-docker,vim vim-syntastic,vim vim-snippets,vim vim-snipmate,vim vim-scripts,vim vim-scripts,vim vim-rails,vim vim-pathogen,vim vim-migemo,vim vim-latexsuite,vim vim-latexsuite,vim vim-khuno,vim vim-gocomplete,vim vim-fugitive,vim vim-editorconfig,vim vim-ctrlp,vim vim-autopep8,vim vim-addon-mw-utils,vim vim-addon-manager,vim supercollider-vim,vim ocaml-tools,vim libvi-quickfix-perl,vim libtext-vimcolor-perl,vim hollywood,vim halibut,vim gworkspace-apps-wrappers,vim games-python3-dev,vim games-python2-dev,vim games-c++-dev,vim edubuntu-desktop,vim debian-reference-common,vim bikeshed,vim vim:i386,vim vim-runtime,vim vim-common,vim ubuntu-server,vim exuberant-ctags,vim Dependencies: 2:7.4.1689-3ubuntu1.2 - vim-common (5 2:7.4.1689-3ubuntu1.2) vim-runtime (5 2:7.4.1689-3ubuntu1.2) libacl1 (2 2.2.51-8) libc6 (2 2.15) libgpm2 (2 1.20.4) libpython3.5 (2 3.5.0~b1) libselinux1 (2 1.32) libtinfo5 (2 6) ctags (0 (null)) vim-doc (0 (null)) vim-scripts (0 (null)) vim:i386 (32 (null)) 2:7.4.1689-3ubuntu1 - vim-common (5 2:7.4.1689-3ubuntu1) vim-runtime (5 2:7.4.1689-3ubuntu1) libacl1 (2 2.2.51-8) libc6 (2 2.15) libgpm2 (2 1.20.4) libselinux1 (2 1.32) libtinfo5 (2 6) ctags (0 (null)) vim-doc (0 (null)) vim-scripts (0 (null)) vim:i386 (32 (null)) Provides: 2:7.4.1689-3ubuntu1.2 - editor (= ) 2:7.4.1689-3ubuntu1 - editor (= ) Reverse Provides: vim-nox-py2 2:7.4.1689-3ubuntu1.2 (= ) vim-nox 2:7.4.1689-3ubuntu1.2 (= ) vim-gtk3-py2 2:7.4.1689-3ubuntu1.2 (= ) vim-gtk3 2:7.4.1689-3ubuntu1.2 (= ) vim-gtk-py2 2:7.4.1689-3ubuntu1.2 (= ) vim-gtk 2:7.4.1689-3ubuntu1.2 (= ) vim-gnome-py2 2:7.4.1689-3ubuntu1.2 (= ) vim-athena-py2 2:7.4.1689-3ubuntu1.2 (= ) vim-athena 2:7.4.1689-3ubuntu1.2 (= ) vim-gnome 2:7.4.1689-3ubuntu1.2 (= ) vim-nox-py2 2:7.4.1689-3ubuntu1 (= ) vim-nox 2:7.4.1689-3ubuntu1 (= ) vim-gtk3-py2 2:7.4.1689-3ubuntu1 (= ) vim-gtk3 2:7.4.1689-3ubuntu1 (= ) vim-gtk-py2 2:7.4.1689-3ubuntu1 (= ) vim-gtk 2:7.4.1689-3ubuntu1 (= ) vim-gnome-py2 2:7.4.1689-3ubuntu1 (= ) vim-athena-py2 2:7.4.1689-3ubuntu1 (= ) vim-athena 2:7.4.1689-3ubuntu1 (= ) vim-gnome 2:7.4.1689-3ubuntu1 (= )
这样显示的,我看不大懂是怎么样,只知道是有安装/笑哭
chenxi@chenxi-virtual-machine:~$ apt-cache show vim Package: vim Architecture: amd64 Version: 2:7.4.1689-3ubuntu1.2 Priority: optional Section: editors Origin: Ubuntu Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian Vim Maintainers pkg-vim-maintainers@lists.alioth.debian.org Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2400 Provides: editor Depends: vim-common (= 2:7.4.1689-3ubuntu1.2), vim-runtime (= 2:7.4.1689-3ubuntu1.2), libacl1 (>= 2.2.51-8), libc6 (>= 2.15), libgpm2 (>= 1.20.4), libpython3.5 (>= 3.5.0~b1), libselinux1 (>= 1.32), libtinfo5 (>= 6) Suggests: ctags, vim-doc, vim-scripts Filename: pool/main/v/vim/vim_7.4.1689-3ubuntu1.2_amd64.deb Size: 1035696 MD5sum: 59f352cc24243a60cc1a014e51f7aca3 SHA1: 4d3a754ee9dab9b2b060ac4c376e10cb459be3fd SHA256: b190fe0a62c42012e272726c58e8baa32b1cff0396412fe0867b957da385a44c Homepage: http://www.vim.org/ Description-en: Vi IMproved - enhanced vi editor Vim is an almost compatible version of the UNIX editor Vi. . Many new features have been added: multi level undo, syntax highlighting, command line history, on-line help, filename completion, block operations, folding, Unicode support, etc. . This package contains a version of vim compiled with a rather standard set of features. This package does not provide a GUI version of Vim. See the other vim-* packages if you need more (or less). Description-md5: 59e8b8f7757db8b53566d5d119872de8 Task: ubuntu-usb, cloud-image, server, edubuntu-desktop-gnome, edubuntu-usb Supported: 5y
Package: vim Priority: optional Section: editors Installed-Size: 2321 Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian Vim Maintainers pkg-vim-maintainers@lists.alioth.debian.org Architecture: amd64 Version: 2:7.4.1689-3ubuntu1 Provides: editor Depends: vim-common (= 2:7.4.1689-3ubuntu1), vim-runtime (= 2:7.4.1689-3ubuntu1), libacl1 (>= 2.2.51-8), libc6 (>= 2.15), libgpm2 (>= 1.20.4), libselinux1 (>= 1.32), libtinfo5 (>= 6) Suggests: ctags, vim-doc, vim-scripts Filename: pool/main/v/vim/vim_7.4.1689-3ubuntu1_amd64.deb Size: 1008216 MD5sum: 15a29f92a7422ea5d0bc04c9734a5ad7 SHA1: 2b943dd0446a352a98760e5bfe349ff76bdea073 SHA256: dfbbf119d849bd407fd557fdefed30467055086dd820d30ef5b0800861e0a29f Description-en: Vi IMproved - enhanced vi editor Vim is an almost compatible version of the UNIX editor Vi. . Many new features have been added: multi level undo, syntax highlighting, command line history, on-line help, filename completion, block operations, folding, Unicode support, etc. . This package contains a version of vim compiled with a rather standard set of features. This package does not provide a GUI version of Vim. See the other vim-* packages if you need more (or less). Description-md5: 59e8b8f7757db8b53566d5d119872de8 Homepage: http://www.vim.org/ Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Supported: 5y Task: ubuntu-usb, cloud-image, server, edubuntu-desktop-gnome, edubuntu-usb
以及这样,麻烦了
就是因为vim不是vim8的原因
你先手动安装一个vim8试试
你先手动安装一个vim8试试
https://github.com/chxuan/vimplus/issues/93#issuecomment-439743304 我按照这个教程安装了VIM8.1,然后还是提示问题里的信息,不是编辑器的命令
@chenxiqiyuan 你安装vimplus的时候是不是加了sudo?,不需要加sudo哈
@chenxiqiyuan 你安装vimplus的时候是不是加了sudo?,不需要加sudo哈
在你的CSDN教程里面是sudo ./install.sh 我刚刚试了一下sudo ./unstall.sh ,然后.执行/install.sh 显示权限不足
执行./install.sh > log.txt 2>&1
发生了同样的问题,vim版本 8.0,环境 WSL ubuntu 18.04.1,在~目录下没有找到.vim目录,执行install.sh时加了sudo
@PigBaySpy 不加sudo哈,参考最新的vimplus github上的readme
chenxi@chenxi-virtual-machine:~$ vim a.c 处理 /home/chenxi/.vimrc 时发生错误: 第 109 行: E117: 未定义的函数: plug#begin 第 111 行: E492: 不是编辑器的命令: Plug 'chxuan/cpp-mode' 第 112 行: E492: 不是编辑器的命令: Plug 'chxuan/vim-edit' 第 113 行: E492: 不是编辑器的命令: Plug 'chxuan/change-colorscheme' 第 114 行: E492: 不是编辑器的命令: Plug 'chxuan/prepare-code' 第 115 行: E492: 不是编辑器的命令: Plug 'chxuan/vim-buffer' 第 116 行: E492: 不是编辑器的命令: Plug 'chxuan/vimplus-startify' 第 117 行: E492: 不是编辑器的命令: Plug 'chxuan/tagbar' 第 118 行: E492: 不是编辑器的命令: Plug 'Valloric/YouCompleteMe' 第 119 行: E492: 不是编辑器的命令: Plug 'Yggdroot/LeaderF' 第 120 行: E492: 不是编辑器的命令: Plug 'mileszs/ack.vim' 第 121 行: E492: 不是编辑器的命令: Plug 'easymotion/vim-easymotion' 第 122 行: E492: 不是编辑器的命令: Plug 'haya14busa/incsearch.vim' 第 123 行: E492: 不是编辑器的命令: Plug 'iamcco/mathjax-support-for-mkdp' 第 124 行: E492: 不是编辑器的命令: Plug 'iamcco/markdown-preview.vim' 第 125 行: E492: 不是编辑器的命令: Plug 'jiangmiao/auto-pairs' 第 126 行: E492: 不是编辑器的命令: Plug 'scrooloose/nerdtree' 第 127 行: E492: 不是编辑器的命令: Plug 'tiagofumo/vim-nerdtree-syntax-highlight' 第 128 行: E492: 不是编辑器的命令: Plug 'Xuyuanp/nerdtree-git-plugin' 第 129 行: E492: 不是编辑器的命令: Plug 'godlygeek/tabular' 第 130 行: E492: 不是编辑器的命令: Plug 'tpope/vim-fugitive' 第 131 行: E492: 不是编辑器的命令: Plug 'tpope/vim-surround' 第 132 行: E492: 不是编辑器的命令: Plug 'tpope/vim-commentary' 第 133 行: E492: 不是编辑器的命令: Plug 'tpope/vim-repeat' 第 134 行: E492: 不是编辑器的命令: Plug 'tpope/vim-endwise' 第 135 行: E492: 不是编辑器的命令: Plug 'octol/vim-cpp-enhanced-highlight' 第 136 行: E492: 不是编辑器的命令: Plug 'vim-airline/vim-airline' 第 137 行: E492: 不是编辑器的命令: Plug 'vim-airline/vim-airline-themes' 第 138 行: E492: 不是编辑器的命令: Plug 'ryanoasis/vim-devicons' 第 139 行: E492: 不是编辑器的命令: Plug 'junegunn/vim-slash' 第 140 行: E492: 不是编辑器的命令: Plug 'junegunn/gv.vim' 第 141 行: E492: 不是编辑器的命令: Plug 'kana/vim-textobj-user' 第 142 行: E492: 不是编辑器的命令: Plug 'kana/vim-textobj-indent' 第 143 行: E492: 不是编辑器的命令: Plug 'kana/vim-textobj-syntax' 第 144 行: E492: 不是编辑器的命令: Plug 'kana/vim-textobj-function' 第 145 行: E492: 不是编辑器的命令: Plug 'sgur/vim-textobj-parameter' 第 146 行: E492: 不是编辑器的命令: Plug 'Shougo/echodoc.vim' 第 147 行: E492: 不是编辑器的命令: Plug 'terryma/vim-smooth-scroll' 第 148 行: E492: 不是编辑器的命令: Plug 'rhysd/clever-f.vim' 第 149 行: E492: 不是编辑器的命令: Plug 'rhysd/github-complete.vim' 第 150 行: E492: 不是编辑器的命令: Plug 'vim-scripts/indentpython.vim' 第 152 行: E117: 未定义的函数: plug#end 请按 ENTER 或其它命令继续
终端这样显示的,按下enter后创建a.c文件,一片空白,F2 F3也都不能用,请问该怎么解决?