blob: 85d75eb11cd88c4ea16bac8b8e0d27115df1a183 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
" Escape a single argument for use on an Ex command line; essentially
" a backport of fnameescape() for versions before v7.1.299
"
function! argument#Escape(argument) abort
return exists('*fnameescape')
\ ? fnameescape(a:argument)
\ : escape(a:argument, "\n\r\t".' *?[{`$\%#''"|!<')
endfunction
|