From 780b02df59bd2960124f9f4f2dac662aa2b460ed Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Tue, 9 Oct 2012 17:07:57 -0500 Subject: [PATCH 1/4] Adding workflowish stuff for vim --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vimrc b/vimrc index 0aa7751..eb026e9 100644 --- a/vimrc +++ b/vimrc @@ -38,6 +38,7 @@ Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'mbbill/undotree' Bundle 'Shougo/neocomplcache' Bundle 'coderifous/textobj-word-column.vim' +Bundle 'lukaszkorecki/workflowish' " Snipmate " Bundle 'MarcWeber/vim-addon-mw-utils' @@ -196,3 +197,9 @@ nnoremap l :ls:b " Set the max files let g:ctrlp_max_files = 10000 + +" Workflowish stuff. Search for #todo +nnoremap T :vimgrep /#todo/i %:copen + +" Quickly switch back to quickfix +nnoremap f :copen From fb9da10b3deffceacc1d648c5afd1ec54bf2366c Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Tue, 9 Oct 2012 17:29:00 -0500 Subject: [PATCH 2/4] Updating workflowish keymaps to resize quickfix window --- oh-my-zsh | 2 +- vimrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oh-my-zsh b/oh-my-zsh index d05b201..c2ae9e0 160000 --- a/oh-my-zsh +++ b/oh-my-zsh @@ -1 +1 @@ -Subproject commit d05b2010ffd4cd33ff9402c402051b1caf985d97 +Subproject commit c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 diff --git a/vimrc b/vimrc index eb026e9..8b94c44 100644 --- a/vimrc +++ b/vimrc @@ -199,7 +199,7 @@ nnoremap l :ls:b let g:ctrlp_max_files = 10000 " Workflowish stuff. Search for #todo -nnoremap T :vimgrep /#todo/i %:copen +nnoremap T :vimgrep /#todo/i %:copen:30wincmd _ " Quickly switch back to quickfix nnoremap f :copen From d118b39074feda037c329b78dc647a699ba5a0d2 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Tue, 9 Oct 2012 17:38:16 -0500 Subject: [PATCH 3/4] Only showing non-completed todos now for workflowy --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 8b94c44..3d77274 100644 --- a/vimrc +++ b/vimrc @@ -199,7 +199,7 @@ nnoremap l :ls:b let g:ctrlp_max_files = 10000 " Workflowish stuff. Search for #todo -nnoremap T :vimgrep /#todo/i %:copen:30wincmd _ +nnoremap T :vimgrep /\v^\s*\*+.*#todo.*/i %:copen:30wincmd _ " Quickly switch back to quickfix nnoremap f :copen From 6592e4208b4fc0e2d8a4916279ab39937967aa93 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Tue, 9 Oct 2012 17:58:16 -0500 Subject: [PATCH 4/4] Adding another #todo searcher for vim workflowish. Also cleaned up some spacing --- vimrc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 3d77274..7778a77 100644 --- a/vimrc +++ b/vimrc @@ -39,6 +39,7 @@ Bundle 'mbbill/undotree' Bundle 'Shougo/neocomplcache' Bundle 'coderifous/textobj-word-column.vim' Bundle 'lukaszkorecki/workflowish' +Bundle 'searchfold.vim' " Snipmate " Bundle 'MarcWeber/vim-addon-mw-utils' @@ -103,7 +104,7 @@ set smartcase " if we include uppercase, it will be case sensitive set showmatch " matching brackets set matchtime=2 " blink brackets " turn off highlighting -nnoremap :noh +nnoremap :noh " regex " thanks stevelosh set magic @@ -152,7 +153,7 @@ colorscheme solarized "let NERDTreeDirArrows=1 " Tagbar -nnoremap t :TagbarToggle +nnoremap t :TagbarToggle " disable tagbar in old Vim if v:version < 703 let g:loaded_tagbar=1 @@ -172,7 +173,7 @@ nnoremap s :SyntasticToggleMode " let g:SuperTabDefaultCompletionType="context" " open the current file for edit in Perforce -nnoremap 4 :! p4 edit % +nnoremap 4 :! p4 edit % " open vsplit and switch to it nnoremap v vl @@ -199,7 +200,5 @@ nnoremap l :ls:b let g:ctrlp_max_files = 10000 " Workflowish stuff. Search for #todo -nnoremap T :vimgrep /\v^\s*\*+.*#todo.*/i %:copen:30wincmd _ - -" Quickly switch back to quickfix -nnoremap f :copen +nnoremap T :vimgrep /\v^\s*\*+.*#todo.*/i %:copen:30wincmd _ +nnoremap TT /\v^\s*\*+.*#todo.*/i