Modified vimrc to keep the directory of the file that it was opened with

Also set undo history to not get lost when switching buffers. As well
as adding a SortLines function

Mac zshrc exports usr/local/bin so ctags will work.