How do I resolve this error:
E499: Empty file name for '%' or '#', only works with ":p:h"
This error happens anytime I use % in a vim command. I've never seen this before. Here is my .vimrc:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
"Plugin 'scrooloose/nerdtree'
"Plugin 'bling/vim-airline'
"Plugin 'altercation/vim-colors-solarized'
call vundle#end()
filetype plugin indent on
I've commented out those last few plugins to see if they had any correlation with the error, but that didn't seem to help. I used Git to install vim as usual:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
All I did after that was run :PluginInstall to install the plugins, and then ran :source % which gave the error.
OS: Ubuntu 15.04