首页 > 系统服务 > 详细

Manage Vim Plugin With Pathogen

时间:2015-12-20 20:34:58      阅读:231      评论:0      收藏:0      [点我收藏+]

pathogen.vim Manage your ‘runtimepath‘ with ease. In practical terms, pathogen.vim makes it super easy to install plugins and runtime files in their own private directories.

Installation

Install to ~/.vim/autoload/pathogen.vim. Or copy and paste:

mkdir -p ~/.vim/autoload ~/.vim/bundle && \

curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Runtime Path Manipulation

Add this to your vimrc:

execute pathogen#infect()

If you‘re brand new to Vim and lacking a vimrc, vim ~/.vimrc and paste in the following super-minimal example:

execute pathogen#infect()

syntax on

filetype plugin indent on

Now any plugins you wish to install can be extracted to a subdirectory under ~/.vim/bundle, and they will be added to the ‘runtimepath‘.

An Example to Install Molokai Plugin

cd ~/.vim/bundle && \
git clone https://github.com/tomasr/molokai.git

Now Molokai is installed. Add the following to your vimrc.

" Set color scheme

colorscheme molokai

References

 

Technorati 标签: ,
 

Manage Vim Plugin With Pathogen

原文:http://www.cnblogs.com/luckysimple/p/5061571.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!