From a8b50dee5afe50dd0011c645ef396bc209c1f2ef Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 4 Jul 2018 21:08:59 +0200 Subject: [PATCH] Windows: handle UNC paths more gracefully References #257 --- autoload/sy.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/sy.vim b/autoload/sy.vim index 5ef9804..d6e166f 100644 --- a/autoload/sy.vim +++ b/autoload/sy.vim @@ -13,6 +13,9 @@ function! sy#start() abort endif let sy_path = resolve(expand('%:p')) + if has('win32') + let sy_path = substitute(sy_path, '\v^(\w):\\\\', '\1:\\', '') + endif if s:skip(sy_path) call sy#verbose('Skip file: '. sy_path)