Last active
June 30, 2019 15:13
-
-
Save everaldo/7183298 to your computer and use it in GitHub Desktop.
fugitive.vim (vim-fugitive): a git wrapper
ctags: index and navegation of source files References: http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html
https://github.com/tpope/vim-fugitive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pathogen.vim must be installed before those commands | |
# https://github.com/tpope/vim-pathogen | |
cd ~/.vim/bundle | |
git clone git://github.com/tpope/vim-fugitive.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# post-commit, post-merge, and post-checkout | |
# remember to mark them as executable | |
#!/bin/sh | |
.git/hooks/ctags >/dev/null 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Linux | |
sudo apt-get install exuberant-ctags | |
# For Mac | |
brew install ctags | |
# Git will use this template when creating or cloning a repository | |
git config --global init.templatedir '~/.git_template' | |
mkdir -p ~/.git_template/hooks | |
git config --global alias.ctags '!.git/hooks/ctags' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$1" in | |
rebase) exec .git/hooks/post-merge ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment