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

  • 相关阅读:
    用C#来开发CAD插件,含源代码
    C#自定义工业控件开发
    判断点是否在多边形内部
    在C#中使用属性控件添加属性窗口
    Java TreeMap 介绍和使用
    Java中异常处理之try和catch代码块的使用
    Class.forName()的作用与使用总结
    web.xml文件详解
    Java中普通代码块,构造代码块,静态代码块区别及代码示例
    详解JSP九个内置对象
  • 原文地址:https://www.cnblogs.com/JamyWong/p/9754000.html
Copyright © 2011-2022 走看看