diff --git a/vimrc b/vimrc index 9fafd6b..03bebbc 100644 --- a/vimrc +++ b/vimrc @@ -261,6 +261,8 @@ function! MatchingLinesDict(pattern) silent! exec "g/".a:pattern."/ call s:mld_helper(list, a:pattern)" return list endfunc +com! -nargs=1 List call setloclist(0, MatchingLinesDict()) + \ | lopen function! LocationAddLineCol(filename, lnum, text, col) call setloclist(0, [{'filename': a:filename, 'lnum': a:lnum, 'desc': a:text, 'col': a:col}], 'a')