blob: 642e1c0ffdaff310b8b0f748244700a86e7677b8 (
plain)
1
2
3
4
5
6
7
8
9
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
|