Last active
June 12, 2018 10:23
-
-
Save vince67/2ba6fc71a91711da07eb to your computer and use it in GitHub Desktop.
安装VIM插件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pathogen管理插件的插件 | |
sudo apt-get install curl | |
mkdir -p ~/.vim/autoload ~/.vim/bundle; \ | |
curl -LSso ~/.vim/autoload/pathogen.vim \ | |
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
# 加到 .vimrc 文件里 | |
execute pathogen#infect() | |
# NERDTree | |
cd ~/.vim/bundle | |
git clone git://github.com/scrooloose/nerdtree.git | |
# Powerline | |
cd ~/.vim/bundle | |
git clone git://github.com/Lokaltog/vim-powerline.git | |
# .vimrc中设置状态栏主题 | |
"powerline{ | |
set encoding=utf-8 | |
set laststatus=2 | |
set guifont=PowerlineSymbols\ for\ Powerline | |
set nocompatible | |
set t_Co=256 | |
let g:Powerline_symbols = 'fancy' | |
"} | |
# 解决字体乱码和箭头乱码 | |
sudo apt-get install rxvt-unicode-256color | |
mkdir ~/.fonts | |
cd ~/.fonts | |
git clone https://github.com/eugeneching/consolas-powerline-vim.git | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment