I was having issue with the vim-gnome package and command-t with vim not compiling with the system ruby. So I built vim with.
sudo apt-get install mercurial hg clone https://vim.googlecode.com/hg/ vim cd vim ./configure --enable-rubyinterp make sudo make install
But I made a mistake. when I did vim --version | grep ruby I realised my error. I had forgotten to turn off rvm before compiling.
-Wl,-R -Wl,/home/renshaw/.rvm/rubies/ruby-1.9.3-p0/lib -L/home/renshaw/.rvm/rubies/ruby-1.9.3-p0/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -L/home/renshaw/.rvm/rubies/ruby-1.9.3-p0/lib
But I can't get apt-get remove it and I cannot see vim in /usr/bin/. It still runs if I type vim, but how do I remove it so I can compile it properly?