Re: conversion file pattern <-> regex pattern

2015-03-24 Thread Enno
Le vendredi 6 mars 2015 17:47:15 UTC+1, Enno a écrit : > To check if a file path 'path' matches &backupskip, > the naive try > > path ~=# &backupskip > > does not work because &backupskip is a file pattern > as used for autocmd events. Is there a function > 'file2regex()' that converts &backupsk

Re: conversion file pattern <-> regex pattern

2015-03-23 Thread Christian Brabandt
On Do, 12 Mär 2015, Christian Brabandt wrote: > Am 2015-03-12 11:48, schrieb Enno: > >Le vendredi 6 mars 2015 17:47:15 UTC+1, Enno a écrit : > >>To check if a file path 'path' matches &backupskip, > >>the naive try > >> > >>path ~=# &backupskip > >> > >>does not work because &backupskip is a file

Re: conversion file pattern <-> regex pattern

2015-03-12 Thread Enno
Le vendredi 6 mars 2015 17:47:15 UTC+1, Enno a écrit : > To check if a file path 'path' matches &backupskip, > the naive try > > path ~=# &backupskip > > does not work because &backupskip is a file pattern > as used for autocmd events. Is there a function > 'file2regex()' that converts &backupsk

Re: conversion file pattern <-> regex pattern

2015-03-12 Thread Christian Brabandt
Am 2015-03-12 11:48, schrieb Enno: Le vendredi 6 mars 2015 17:47:15 UTC+1, Enno a écrit : To check if a file path 'path' matches &backupskip, the naive try path ~=# &backupskip does not work because &backupskip is a file pattern as used for autocmd events. Is there a function 'file2regex()' th

Re: conversion file pattern <-> regex pattern

2015-03-12 Thread Enno
Le vendredi 6 mars 2015 17:47:15 UTC+1, Enno a écrit : > To check if a file path 'path' matches &backupskip, > the naive try > > path ~=# &backupskip > > does not work because &backupskip is a file pattern > as used for autocmd events. Is there a function > 'file2regex()' that converts &backupsk

Re: conversion file pattern <-> regex pattern

2015-03-11 Thread Christian Brabandt
Hi Enno! On Fr, 06 Mär 2015, Enno wrote: > To check if a file path 'path' matches &backupskip, > the naive try > > path ~=# &backupskip > > does not work because &backupskip is a file pattern > as used for autocmd events. Is there a function > 'file2regex()' that converts &backupskip to a Vim

conversion file pattern <-> regex pattern

2015-03-06 Thread Enno
To check if a file path 'path' matches &backupskip, the naive try path ~=# &backupskip does not work because &backupskip is a file pattern as used for autocmd events. Is there a function 'file2regex()' that converts &backupskip to a Vim regex pattern so that path ~=# file2regex(&backupskip) is