diff options
author | Max Christian Pohle | 2020-02-28 14:21:36 +0100 |
---|---|---|
committer | Max Christian Pohle | 2020-02-28 14:21:36 +0100 |
commit | 1806b1b40739894ee18bef2c071487274cbab3b7 (patch) | |
tree | 3c43f810098943d79c35303f068ac00a97faf1e8 /after | |
parent | 7ebf9126bcbe10769b2275056fede56736890b59 (diff) | |
download | vim-1806b1b40739894ee18bef2c071487274cbab3b7.tar.bz2 vim-1806b1b40739894ee18bef2c071487274cbab3b7.zip |
Small fixes and adoptions for python[23]
Diffstat (limited to 'after')
-rw-r--r-- | after/ftplugin/python.vim | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
1 | python3 << EOF | ||
2 | import os | ||
3 | import sys | ||
4 | import vim | ||
5 | for p in sys.path: | ||
6 | # Add each directory in sys.path, if it exists. | ||
7 | if os.path.isdir(p): | ||
8 | # Command 'set' needs backslash before each space. | ||
9 | vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) | ||
10 | EOF | ||