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

 

posted @ 2018-10-08 14:08  Jamy  阅读(301)  评论(0编辑  收藏  举报