Created
March 23, 2014 07:23
-
-
Save kshenoy/9719890 to your computer and use it in GitHub Desktop.
Find all the lines that contain the search term and display them in the location lis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! myFunctions#FindAndList() | |
let term = input("Find: /") | |
let v:errmsg = "" | |
if term == "" | |
term = expand('<cword>')) | |
endif | |
if v:errmsg == "" | |
execute "lvimgrep! /" . term . "/ " . fnameescape(expand('%:p')) | |
lopen | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment