diff options
| author | Teddy Wing | 2014-11-23 13:00:59 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2014-11-23 13:00:59 -0500 | 
| commit | 1c75d1ed18ed708d0e2a6aeac66e8917d8220cff (patch) | |
| tree | 7c4929a8de07975640207b1bf9c47e399b289107 /ls-grep.vim | |
| parent | 0628f6a9f2567d3a25c9088123c9195877915a4b (diff) | |
| download | vim-ls-grep-1c75d1ed18ed708d0e2a6aeac66e8917d8220cff.tar.bz2 | |
ls-grep.vim: Allow a search string
Add capability to search for an arbitrary string.
Diffstat (limited to 'ls-grep.vim')
| -rw-r--r-- | ls-grep.vim | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/ls-grep.vim b/ls-grep.vim index c369c1d..85a8334 100644 --- a/ls-grep.vim +++ b/ls-grep.vim @@ -1,12 +1,12 @@ -function! LsGrep() +function! LsGrep(search)  	redir => ls_output  	silent ls  	redir END -	let ls_output = system("echo " . shellescape(ls_output) . " | grep " . "ls") +	let ls_output = system("echo " . shellescape(ls_output) . " | grep " . shellescape(a:search))  	echo ls_output  endfunction -call LsGrep() +call LsGrep("ls") | 
