First commit

This commit is contained in:
Gilson Filho
2012-10-17 14:14:08 -03:00
commit 8a843ef55a
4 changed files with 107 additions and 0 deletions

BIN
plugin/.searchtasks.vim.swp Normal file

Binary file not shown.

29
plugin/searchtasks.vim Normal file
View File

@@ -0,0 +1,29 @@
" searchtasks.vim - Search TODO, FIXME and XXX tasks
" Maintainer: Gilson Filho <http://gilsondev.com>
" Version: 1.0
if exists("g:searchtasks_list") || &cp || v:version < 700
finish
endif
let g:searchtasks_list=["TODO", "FIXME", "XXX"]
" Search tasks {{{
function s:SearchTasks(directory)
if !a:directory
echo "Directory is required (e.g: SearchTasks **/*.c)."
return ''
endif
for task in g:searchtasks_list
execute 'vimgrepadd /' . task . '/gj ' . a:directory
endfor
" show results
cwindow
endfunction
" }}}
command -nargs=1 SearchTasks silent call s:SearchTasks('<args>')
" vim:set sw=2 sts=2: