From 856c66e15051bb003acbd46b6bd97f4e0a1e3efa Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 5 Jun 2019 11:32:59 +0100 Subject: [PATCH] Add :TodoFile command to find TODOs Find all TODOs in the current file and populate the location list with the results. --- plugin/commands.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/commands.vim b/plugin/commands.vim index fef798e..8d423ba 100644 --- a/plugin/commands.vim +++ b/plugin/commands.vim @@ -26,3 +26,6 @@ command! CursorHighlightGroups call do#cursor_highlight_groups() " Setup and invoke a :TermdebugCommand command! -nargs=+ -complete=file Debug call do#debug() + +" Find all TODO items in the current file and populate the location list +command! TodoFile lvimgrep /todo/ %