From d53738b79e544a97e68f9731bef58201032a3cae Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 23 Nov 2014 15:14:33 -0500 Subject: ls-grep.vim: Add some comments to the `LsGrep` function --- ls-grep.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ls-grep.vim b/ls-grep.vim index a5ba29c..aa4e80d 100644 --- a/ls-grep.vim +++ b/ls-grep.vim @@ -1,10 +1,13 @@ function! LsGrep(search) + " Store :ls output redir => ls_output silent ls redir END + " Grep :ls output let ls_output = system("echo " . shellescape(ls_output) . " | grep -i " . shellescape(a:search)) + " Display echo ls_output endfunction -- cgit v1.2.3