Skip to content

Instantly share code, notes, and snippets.

@vince67
Last active June 12, 2018 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vince67/2ba6fc71a91711da07eb to your computer and use it in GitHub Desktop.
Save vince67/2ba6fc71a91711da07eb to your computer and use it in GitHub Desktop.
安装VIM插件
# 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