Skip to content

Commit

Permalink
ack is better than grep
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerborene committed Apr 12, 2011
1 parent 69ed726 commit e0c6a2e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "bundle/nerdcommenter"]
path = bundle/nerdcommenter
url = git://github.com/scrooloose/nerdcommenter.git
[submodule "bundle/ack"]
path = bundle/ack
url = git://github.com/mileszs/ack.vim.git
2 changes: 2 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,5 @@ set wildignore+=.git,*.pyc,*~ "stuff to ignore when searching and tab completing
"keep swap files in one location
set backupdir=$HOME/.vim/tmp
set directory=$HOME/.vim/tmp

let g:ackprg="ack-grep -H --nocolor --nogroup --column"
1 change: 1 addition & 0 deletions bundle/ack
Submodule ack added at a41d5d
20 changes: 15 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@
# My vim life.
# Rainer Borene

# Check if Git is installed.
if [ ! -e "/usr/bin/git" ]
then
# Check if git is installed.
if [ ! -e "/usr/bin/git" ]; then
echo "What? You don't have Git installed."
exit 1
fi

# Install ack-grep binary
if [ ! -e "/usr/bin/ack-grep" ]; then
if [ "$(uname -o)" == "GNU/Linux" ]; then
echo "*** Installing ack-grep..."
sudo apt-get install ack-grep
fi
else
echo "Sorry, but you have to install ack-grep first."
exit 1
fi

TTY="/dev/$( ps -p$$ | tail -1 | awk '{print$2}' )"

# Make sure we want to proceed with installation.
Expand All @@ -26,7 +36,7 @@ cd ~
rm -Rf .vimrc .gvimrc ~/.vim

# Clone repository
echo "*** Installing Vimfiles..."
echo "*** Downloading..."
git clone git://github.com/rainerborene/vimfiles.git .vim > /dev/null
ln -s .vim/.vimrc

Expand All @@ -35,7 +45,7 @@ cd ~/.vim
mkdir tmp

# Initialize submodules
echo "*** Updating submodules..."
echo "*** Updating modules..."
git submodule update --init > /dev/null

# Compile Command-T extension
Expand Down

0 comments on commit e0c6a2e

Please sign in to comment.