show TODOs with <leader>td

This commit is contained in:
ManjaroOne666 2017-12-27 13:28:03 +00:00
parent 4a53d32024
commit 70b6a19a31
1 changed files with 4 additions and 0 deletions

4
vimrc
View File

@ -172,6 +172,10 @@ nnoremap <leader>qfn :cnewer<CR>
" quick grep of visual selection " quick grep of visual selection
vnoremap <leader>gr y:grep! -R <C-r>" . vnoremap <leader>gr y:grep! -R <C-r>" .
" open quickfix window of TODOs
" // TODO
nnoremap <leader>td :grep! -R '// TODO' .<CR>:botright cwindow<CR>
" brace/quotes completion " brace/quotes completion
inoremap {{ {}<left> inoremap {{ {}<left>
inoremap {{{ {<CR>}<esc>O inoremap {{{ {<CR>}<esc>O