Created
February 4, 2011 16:41
-
-
Save sergray/811341 to your computer and use it in GitHub Desktop.
add tree of directories to vim path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python << END_PATH | |
import os | |
import vim | |
walker = os.walk(os.getcwd()) | |
dir_list = ['.'] | |
for root, dirs, paths in walker: | |
dir_list += map(lambda d: os.path.join(root, d), dirs) | |
vim.command('set path=%s' % ','.join(dir_list)) | |
END_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment