aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/option/item.vim
blob: b3e9f0a7f29b4ce963da7ad318759c5b148d8236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
function! option#item#Escape(item, ...) abort
  if a:0 > 1
    echoerr 'Too many arguments'
  endif
  let item = a:item
  let wild = a:0 ? a:1 : 0
  if wild
    let item = escape(item, '\*?[{`''$~')
  endif
  return escape(item, ',')
endfunction