| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Pathogen | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Pathogen
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Pathogen helps you to manage your runtime path with ease. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-17 05:13:48 -05:00
										 |  |  | It lets you easily install bundle for Vim. | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | Run the following commands : | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | 
					
						
							|  |  |  | curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Runtime Path Manipulation
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Add this command to your .vimrc file : | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | execute pathogen#infect() | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-17 05:13:48 -05:00
										 |  |  | If you don't have a .vimrc file, type `vim ~/.vimrc` and paste this : | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | execute pathogen#infect() | 
					
						
							|  |  |  | syntax on | 
					
						
							|  |  |  | filetype plugin indent on | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This is a very basic example. | 
					
						
							| 
									
										
										
										
											2018-11-17 05:13:48 -05:00
										 |  |  | At this moment, plugins will be extracted to `~/.vim/bundle` and will be added to the _`runtimepath`_ | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #### | Example
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-17 05:13:48 -05:00
										 |  |  | If you wish to install a plugin like NERDTree, simply run this : | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | cd ~/.vim/bundle | 
					
						
							|  |  |  | git clone https://github.com/scrooloose/nerdtree | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | It will be added to the \_`runtimepath`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-17 05:13:48 -05:00
										 |  |  | Curated resource of Vim plugins : [Vim Awesome](https://vimawesome.com) |