Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding bundler.vim, fixing some tag generation stuff, and adding in some

niceties for dealing with git commit messages.
  • Loading branch information...
commit 885ff3698713443481d49c1adac4c93423f69eeb 1 parent 9e03739
@wellbredgrapefruit authored
View
3  .gitmodules
@@ -103,3 +103,6 @@
[submodule "home/.vim/bundle/YankRing.vim"]
path = home/.vim/bundle/YankRing.vim
url = git://github.com/vim-scripts/YankRing.vim
+[submodule "home/.vim/bundle/vim-bundler"]
+ path = home/.vim/bundle/vim-bundler
+ url = git://github.com/tpope/vim-bundler
1  home/.vim/bundle/vim-bundler
@@ -0,0 +1 @@
+Subproject commit 7e651445ea759678c9e53a8657fd40a24eecb9a1
View
11 home/.vim/config/fugitive.vim
@@ -24,6 +24,7 @@ map <silent> <Leader>gu :call TMGitPull()<CR>
map <Leader>gv :Gitv!<CR> " file mode, probably what I'll use most
map <Leader>gV :Gitv<CR> " browser mode, opens in a new tab (bleh)
+" Use vimux if we're in a tmux session, otherwise run it through fugitive.
function! TMGitPush()
if InTmux()
call VimuxRunCommand("git push")
@@ -32,6 +33,7 @@ function! TMGitPush()
endif
endfunction
+" Use vimux if we're in a tmux session, otherwise run it through fugitive.
function! TMGitPull()
if InTmux()
call VimuxRunCommand("git pull --rebase")
@@ -39,3 +41,12 @@ function! TMGitPull()
exec ":Git pull --rebase"
endif
endfunction
+
+" Use spell correction and start in insert mode when we're editing commit
+" messages.
+if has('autocmd')
+ if has('spell')
+ au BufNewFile,BufRead COMMIT_EDITMSG setlocal spell
+ endif
+ au BufNewFile,BufRead COMMIT_EDITMSG call feedkeys('ggi', 't')
+endif
View
3  home/.vim/config/tags.vim
@@ -3,3 +3,6 @@ map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
map <Leader>s g]
map <Leader>t g<C-]>
map <Leader>T <C-t>
+
+" Update tag files for ruby files when we save them
+autocmd BufWritePost *.rb call writefile(split(system("sort -u <(touch tags && grep -v " . expand('%:%') . " tags) <(ctags --language-force=ruby -u -f - " . shellescape(expand('%:%')) . " | grep " . expand('%:r') . ")"),"\n"),"tags")
Please sign in to comment.
Something went wrong with that request. Please try again.