Created
July 13, 2012 16:58
-
-
Save acx0/3105976 to your computer and use it in GitHub Desktop.
netrw segfault
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
#!/bin/bash | |
TMPDIR=$(mktemp -d) | |
pushd $TMPDIR | |
mkdir dir | |
ln -s dir dirln | |
echo -e "\nusing vimrc:" | |
echo -e "set nocp\nfiletype plugin on" > vimrc | |
# let netrw load, then do ':qall'; doesn't segfault when passed through -c (netrw doesn't load?) | |
vim -u vimrc -d dir dirln | |
echo -e "\nwithout vimrc:" | |
# doesn't segfault, dirs not opened with netrw? | |
vim -u NONE -c 'set nocp' -c 'filetype plugin on' -d dir dirln | |
popd $TMPDIR | |
rm -r $TMPDIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment