David Wolever avatar David Wolever committed dd3fc79

Indenting of vimrc, making grep ignore '.svn' directories (in Vim and Bash)

Comments (0)

Files changed (4)

File contents unchanged.

 bin/*
 tags
 *.beam
+*.dump
 alias at="at -v"
 alias ls="ls --color=auto"
 alias la="ls -alh"
-alias grep="grep --color=auto"
+alias grep="grep --color=auto --exclude='*.svn*'"
 alias resize="resize; clear"
 alias ut="tar -xvf"
 alias py="python"
 set ignorecase   " Ignore case when searching
 set smartcase    " See :help smartcase (trust me, it's useful)
 set incsearch    " Incremental search
-set hlsearch	 " Hilight searches
+set hlsearch     " Hilight searches
 
 " Make sure that the leader is '\'
 let mapleader="\\"
 map <leader>b :FuzzyFinderBuffer<CR>
 
 " File type things
-syntax enable 		" Turn on syntax hilighting
+syntax enable       " Turn on syntax hilighting
 filetype on         " Enable filetype detection
 filetype indent on  " Enable filetype-specific indenting
 filetype plugin on  " Enable filetype-specific plugins
 
 " Miscalanious stuff...
 set backspace=indent,eol,start " Better backspacing
-set ruler			" Show a ruler along the bottom of the screen
+set ruler           " Show a ruler along the bottom of the screen
 set lz              " Don't re-draw while running macros
 set hid             " Can hide buffers without closing them
 set shortmess=atI   " shortens messages to avoid 'press a key' prompt 
 set scrolloff=3     " Always keep three lines above or below the cursor
-set nocompatible 	" Keep vim from trying to be 100% vi compatible
+set nocompatible    " Keep vim from trying to be 100% vi compatible
 set title           " Set the window title
 set showcmd         " Show (partial) command in status line.
 set wildmenu        " Pretty command-line option matching
 set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.class,.pyc
 set tags=tags;/
 set statusline=%f%m%r%h%w\ [%Y]\ [0x\%02.2B]%<\ %F%=%4v,%4l\ %3p%%\ of\ %L
-set laststatus=2 " Always show status line
-set modelines=5 " Allow modelines within 5 lines of top/bottom
+set laststatus=2    " Always show status line
+set modelines=5     " Allow modelines within 5 lines of top/bottom
 
 " Folding opttions
 set foldmethod=marker
     unmap <down>
 endfun
 
+" Make 'grep' ignore '.svn' directories and recurse
+set grepprg=grep\ -R\ --exclude='*.svn*'
+
 " Enable perdy 256 color mode
 " set t_Co=256
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.