aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-11-23 15:14:33 -0500
committerTeddy Wing2014-11-23 15:14:33 -0500
commitd53738b79e544a97e68f9731bef58201032a3cae (patch)
treedabb979450972927e656763cb2642cfd715f741c
parent87040b744d1c45b885b48fc314b1a938c328fe60 (diff)
downloadvim-ls-grep-d53738b79e544a97e68f9731bef58201032a3cae.tar.bz2
ls-grep.vim: Add some comments to the `LsGrep` function
-rw-r--r--ls-grep.vim3
1 files changed, 3 insertions, 0 deletions
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