vim-makejob

Minimal, asynchronous quickfix commands for Vim 8.0
git clone git://git.danielmoch.com/vim-makejob.git
Log | Files | Refs | README | LICENSE

commit dc5d17a2b8108bcb79d68a853a36e6bb4585753c
parent 8efbd6ea890cc1fde5f1ba4a9660231e212f98fe
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 16 Dec 2016 06:57:15 -0500

Capture and "expand" escaped special characters

The expansion results only in the escape character being removed

Diffstat:
Mplugin/makejob.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/makejob.vim b/plugin/makejob.vim @@ -1,7 +1,7 @@ " " TITLE: VIM-MAKEJOB " AUTHOR: Daniel Moch <daniel@danielmoch.com> -" VERSION: 1.1.1 +" VERSION: 1.1.2-dev " if exists('g:loaded_makejob') || version < 800 || !has('job') || \ !has('channel') || !has('quickfix') @@ -81,7 +81,7 @@ function! s:Expand(input) let l:split_input = split(a:input) let l:expanded_input = [] for l:token in l:split_input - if l:token =~ '^%\|^#\|^\$' && l:token != '$*' && expand(l:token) != '' + if l:token =~ '^\\\?%\|^\\\?#\|^\\\?\$' && l:token != '$*' && expand(l:token) != '' let l:expanded_input += [expand(l:token)] else let l:expanded_input += [l:token]