记录下vim的配置过程
-
首先安上python环境,vim,然后在/home/username目录下有没有.vimrc,没有就创建
-
然后就是运行:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-
运行完之后看看相应的.vim的目录下有没有git下来的东西,
-
在.vimrc中写成: (注意一点:看这段代码中的第二行这个目录要和上面命令行的那个目标目录一样 .
Bundle 'scrooloose/nerdtree'
像这行所在的这一块就是写插件的地方)filetype off " required! set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' Bundle 'scrooloose/nerdtree' " My Bundles here: filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed.. set nocompatible " 关闭 vi 兼容模式 syntax on " 自动语法高亮 set number " 显示行号 set cursorline " 突出显示当前行 set shiftwidth=4 " 设定 << 和 >> 命令移动时的宽度为 4 set softtabstop=4 " 使得按退格键时可以一次删掉 4 个空格 set tabstop=4 " 设定 tab 长度为 4
-
然后终端中进入随便一个vim,然后
:BundleInstall
就可以安装插件了 -
传送门 这个里面有不少插件,可以看着安装
-
pydiction 这个python补全插件是需要配置的:https://blog.csdn.net/weixin_44091157/article/details/104229911