aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin
diff options
context:
space:
mode:
authorMax Christian Pohle2020-02-28 14:21:36 +0100
committerMax Christian Pohle2020-02-28 14:21:36 +0100
commit1806b1b40739894ee18bef2c071487274cbab3b7 (patch)
tree3c43f810098943d79c35303f068ac00a97faf1e8 /after/ftplugin
parent7ebf9126bcbe10769b2275056fede56736890b59 (diff)
downloadvim-1806b1b40739894ee18bef2c071487274cbab3b7.tar.bz2
vim-1806b1b40739894ee18bef2c071487274cbab3b7.zip
Small fixes and adoptions for python[23]
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/python.vim10
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 @@
1python3 << EOF
2import os
3import sys
4import vim
5for 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"\ ")))
10EOF
..