记录下vim的配置过程

记录下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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值