From 18c236a710f22c77c60df48635910154d17b29cb Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 28 Nov 2018 10:17:26 +0100 Subject: [PATCH] Copy irpf90.vim instead of symlink --- src/vim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vim.py b/src/vim.py index cf6381f..185ac17 100644 --- a/src/vim.py +++ b/src/vim.py @@ -40,7 +40,9 @@ def install(): if not os.access(VIM+"/syntax",os.F_OK): os.mkdir(VIM+"/syntax") wd = os.path.abspath(os.path.dirname(__file__)) - os.symlink(wd+"/irpf90.vim",VIM+"/syntax/irpf90.vim") + with open(wd+"/irpf90.vim",'r') as f_in: + with open(VIM+"/syntax/irpf90.vim",'w') as f_out: + f_out.write( f_in.read() ) except: pass