MAC Vim Installation Gruvbox theme

Source: Internet
Author: User
Tags set background



Gruvbox is an excellent vim color scheme, but it is not a color scheme that comes with Vim, which records the installation process.



Gruvbox Official website: https://github.com/morhetz/gruvbox



Gruvbox Installation Instructions: https://github.com/morhetz/gruvbox/wiki/Installation



The VIM plug-in management tool has vim-plug and vundle and so on, both of which can be used arbitrarily.



1. Install with Vim-plug



Official website: https://github.com/junegunn/vim-plug



Install Vim-plug First, install the command:



# Vim (~/.vim/-flo ~/.vim/autoload/plug.vim--create-dirs https://  Raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim


Then add the following configuration in the ~/.VIMRC



 
call plug#begin()
Plug ‘morhetz/gruvbox‘ call plug#end()
colorscheme gruvbox
set background=dark


Then execute in vim: Pluginstall install Gruvbox.



Execution after installation: source% is in effect. VIMRC configuration file



2. Install with Vundle



Vundle Official website: https://github.com/VundleVim/Vundle.vim



Install Vundle First, install the command:



git clone https://github.com/vundlevim/vundle.vim.git ~/.vim/bundle/vundle.vim


Then configure ~/.VIMRC


set nocompatible "be iMproved, required
filetype off "required

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

Plugin ‘VundleVim / Vundle.vim’

call vundle # end () "required
filetype plugin indent on "required

Plugin ‘morhetz / gruvbox’

set bg = dark "Set the background to black
colorscheme gruvbox "Set theme to gruvbox
set guioptions = "Remove scrollbar on both sides
set guifont = Monaco: h17 "Set font and word size


Save configuration: W and execute: Plugininstall install Gruvbox, after installation is complete: source% effective. VIMRC configuration file.






MAC Vim Installation Gruvbox theme


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.