diff --git a/.gitmodules b/.gitmodules index a4233b3..ad5c4a3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,9 +10,6 @@ [submodule "vim/bundle/vim-ruby-conque"] path = vim/bundle/vim-ruby-conque url = https://github.com/skwp/vim-ruby-conque -[submodule "vim/bundle/AnsiEsc"] - path = vim/bundle/AnsiEsc - url = https://github.com/vim-scripts/AnsiEsc.vim.git [submodule "vim/bundle/raimondi-delimitMate"] path = vim/bundle/raimondi-delimitMate url = https://github.com/Raimondi/delimitMate @@ -22,3 +19,6 @@ [submodule "vim/bundle/godlygeek-csapprox"] path = vim/bundle/godlygeek-csapprox url = https://github.com/godlygeek/csapprox.git +[submodule "vim/bundle/vim-scripts-AnsiEsc"] + path = vim/bundle/vim-scripts-AnsiEsc + url = https://github.com/vim-scripts/AnsiEsc.vim.git diff --git a/README.md b/README.md index 4b376b6..06db7d2 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,18 @@ Included vim plugins * GitGrep - much better than the grep provided with fugitive; use :GitGrep or hit K to grep current word * ruby-debug-ide - not quite working for me, but maybe it will for you. supposedly a graphical debugger you can step through +Adding your own vim plugins +--- + +Provided util automatically initializes a git submodule for you: + + util/addvim https://github.com/robgleeson/hammer.vim.git + +Turns into: + + git submodule add https://github.com/robgleeson/hammer.vim.git vim/bundle/robgleeson-hammer + +You can then commit the change. It's good to have your own fork of this project to do that. Setup for Git --- diff --git a/util/addvim b/util/addvim new file mode 100755 index 0000000..e120c7a --- /dev/null +++ b/util/addvim @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +unless ARGV.size==1 + puts "Example: addvim https://github.com/robgleeson/hammer.vim.git" +else + begin + repo=ARGV.first + bundle_path=repo.gsub("https://github.com/","").gsub(".git","").gsub("/","-").gsub(".vim","") + system("git submodule add #{repo} vim/bundle/#{bundle_path}") + rescue + puts "Sorry, couldn't parse your path: #{$!}" + end +end diff --git a/vim/bundle/AnsiEsc b/vim/bundle/vim-scripts-AnsiEsc similarity index 100% rename from vim/bundle/AnsiEsc rename to vim/bundle/vim-scripts-AnsiEsc diff --git a/vimrc b/vimrc index 36cb546..68c1b8c 100644 --- a/vimrc +++ b/vimrc @@ -265,9 +265,9 @@ let g:ConqueTerm_CWInsert = 1 let g:ConqueTerm_Color = 2 " Open up a variety of commands in the ConqueTerm -nmap c :execute 'ConqueTermSplit script/console --irb=pry' -nmap i :execute 'ConqueTermSplit pry' -nmap b :execute 'ConqueTermSplit /bin/bash --login' +nmap cc :execute 'ConqueTermSplit script/console --irb=pry' +nmap pp :execute 'ConqueTermSplit pry' +nmap bb :execute 'ConqueTermSplit /bin/bash --login' let g:ConqueTerm_SendVisKey = 'e'