码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu install git vim Plug manage

时间:2018-10-08 15:09:11      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:clone   tty   nbsp   str   备份   roc   路径   ict   ubunt   

在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工具

  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关键词的插件。

 

ubuntu install git vim Plug manage

标签:clone   tty   nbsp   str   备份   roc   路径   ict   ubunt   

原文地址:https://www.cnblogs.com/JamyWong/p/9754000.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!