Skip to content

Instantly share code, notes, and snippets.

@acx0
Created July 13, 2012 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acx0/3105976 to your computer and use it in GitHub Desktop.
Save acx0/3105976 to your computer and use it in GitHub Desktop.
netrw segfault
#!/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