zoukankan      html  css  js  c++  java
  • ubuntu install git vim Plug manage

    在UBUNTU采用163或是阿里云来更新源,最新的更新源地址可以在网上查阅,

    阿里源

    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

    163源

    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

    更新源的方面主要是编辑: /etc/apt/sources.list 文件,一般更新前都需要备份一份相对来说是比较好的。

    将 更新源 替换 sources.list 内容后,在终端执行更新命令

      sudo apt-get update

      sudo apt-get upgrade

    这篇文主要是讲在UBUNTU下如果安装VIM的插件管理器,

    首先,如果你没有安装好npm或是brew或是yarn都需要安装一下包的管理工具的,

    现在里,需要安装一个git工具

      yum -y install git

    如果采用yum来安装就需要安装yum工具,我是直接采用

      sudo apt -y install git

    来安装git工具

      mkdir -p ~/.vim/bundle

      git clone https://github.com?gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

     ----------------------------------------------------------------

    syntax on

    " tab宽度和缩进同样设置为4

    set tabstop=4

    set softtabstop=4

    set shiftwidth=4

    set nocompatible

    " 你在此设置运行时路径

    set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin()

    " 在这里面输入安装的插件

    " Vundle 本身就是一个插件

    Plugin 'gmarik/Vundle.vim'

    "所有插件都应该在这一行之前

    call vundle#end()

    " filetype off

    filetype plugin indent on 

     ----------------------------------------------------------------

    :PluginInstall

    下面命令在vim命令模式下运行。

    命令描述
    :PluginInstall 安装~/.vimrc中”call vundle#begin()”到”call vundle#end()”范围内配置好的插件;
    :PluginClean 清理已经从”call vundle#begin()”到”call vundle#end()”范围删除的插件。
    :PluginUpdate 更新插件
    :PluginSearch 搜索插件,如”:PluginSearch html”搜索包含html关键词的插件。

    vim /etc/vim/vimrc

  • 相关阅读:
    二叉树的创建与遍历浅析
    sscanf用法简析
    DB、ETL、DW、OLAP、DM、BI关系 ZT
    惊闻企业Web应用生成平台 活字格 V4.0 免费了,不单可视化设计器免费,服务器也免费!
    商业智能BI-基础理论知识总结 ZT
    【BI学习笔记】适合集成到项目里的BI:Wyn Enterprise
    活字格 QQ 群和客户
    快速开发平台在中国的发展前景
    活字格Web应用平台学习笔记 8
    活字格Web应用平台学习笔记 7
  • 原文地址:https://www.cnblogs.com/JamyWong/p/9754000.html
Copyright © 2011-2022 走看看