diff options
Diffstat (limited to 'ls-grep.vim')
| -rw-r--r-- | ls-grep.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ls-grep.vim b/ls-grep.vim new file mode 100644 index 0000000..c369c1d --- /dev/null +++ b/ls-grep.vim @@ -0,0 +1,12 @@ +function! LsGrep() + redir => ls_output + silent ls + redir END + + let ls_output = system("echo " . shellescape(ls_output) . " | grep " . "ls") + + echo ls_output +endfunction + + +call LsGrep() |
