From 1806b1b40739894ee18bef2c071487274cbab3b7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 28 Feb 2020 14:21:36 +0100 Subject: Small fixes and adoptions for python[23] --- after/ftplugin/python.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 after/ftplugin/python.vim (limited to 'after') diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim new file mode 100644 index 0000000..642e1c0 --- /dev/null +++ b/after/ftplugin/python.vim @@ -0,0 +1,10 @@ +python3 << EOF +import os +import sys +import vim +for p in sys.path: + # Add each directory in sys.path, if it exists. + if os.path.isdir(p): + # Command 'set' needs backslash before each space. + vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) +EOF -- cgit v1.2.3