1
0
Fork 0
mirror of synced 2024-11-26 18:55:34 -05:00

submoudle vim-rails added

This commit is contained in:
hustcalm 2012-10-29 23:34:13 +08:00
parent b5ce6ef63a
commit a7a6d7e6f4
4 changed files with 10 additions and 4 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "bundle/fugitive"] [submodule "bundle/fugitive"]
path = bundle/fugitive path = bundle/fugitive
url = git://github.com/tpope/vim-fugitive.git url = git://github.com/tpope/vim-fugitive.git
[submodule "bundle/vim-rails"]
path = bundle/vim-rails
url = git://github.com/tpope/vim-rails.git

View file

@ -325,7 +325,7 @@ After this,you got vim-rails under sources_plugins/vim-rails as a git local repo
### Manage with git submodule ### Manage with git submodule
Instead I'm using git submodule to manage vim plugins now(Alternately you can use [git subtree](https://github.com/apenwarr/git-subtree.git)), clone them from github and install,config,update,delete,etc... And as a vimer, I prefer to drop the plugins to bundle rather than sources_plugins. Instead I'm using git submodule to manage vim plugins now(Alternately you can use [git subtree](https://github.com/apenwarr/git-subtree.git)), clone them from github and install,config,update,delete,etc... And as a vimer, I prefer to drop the plugins to bundle rather than sources_plugins thus pathogen can find it automatically.
As we want to install vim-rails: As we want to install vim-rails:
@ -366,15 +366,17 @@ Above we use vi to edit .gitmoudles and .git/config to remove references to spec
### To make new plugin work ### To make new plugin work
**If you drop your plugins to bunle, you can ignore this.**
**Also** maybe amix forgot to mention that you have to change plugins_config.vim under ~/.vim_runtime/vimrcs to make the plugin work. **Also** maybe amix forgot to mention that you have to change plugins_config.vim under ~/.vim_runtime/vimrcs to make the plugin work.
Just to add a line to plugins_config.vim and it may look like this: Just to add a line to plugins_config.vim and it may look like this:
call pathogen#infect('~/.vim_runtime/sources_forked') call pathogen#infect('~/.vim_runtime/sources_forked')
call pathogen#infect('~/.vim_runtime/sources_non_forked') call pathogen#infect('~/.vim_runtime/sources_non_forked')
**call pathogen#infect('~/.vim_runtime/bundle')** call pathogen#infect('~/.vim_runtime/sources_plugins')
call pathogen#helptags() call pathogen#helptags()
The line **bold** is added. Then pathogen will get everything done. The line **3rd line** is added. Then pathogen will get everything done.
### git submodule reference ### git submodule reference

1
bundle/vim-rails Submodule

@ -0,0 +1 @@
Subproject commit 5490142f0b9ed7cd1c32393308522b58cf81d669

View file

@ -10,7 +10,7 @@
"""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""
call pathogen#infect('~/.vim_runtime/sources_forked') call pathogen#infect('~/.vim_runtime/sources_forked')
call pathogen#infect('~/.vim_runtime/sources_non_forked') call pathogen#infect('~/.vim_runtime/sources_non_forked')
call pathogen#infect('~/.vim_runtime/sources_plugins') call pathogen#infect('~/.vim_runtime/bundle')
call pathogen#helptags() call pathogen#helptags()
"""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""