Aside from normal shell commands, I frequently run fmt from inside vim to format my text to 78 / 80 characters wide.
To solve this, simply compile vim from source:
- Download the latest source, e.g. ver 7.3:
curl ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 -O - Untar:
tar -xvjf vim-7.3.tar.bz2 - Configure to build without GUI:
./configure --enable-gui=no - make
- make install
- Edit your .bash_profile to make sure running vim will run the recently build vim at /usr/local/bin/vim instead of the default at /usr/bin/vim:
PATH=/usr/local/bin/:$PATH; export PATH - All Done!
Thanks, I thought it was a plugin problem, uninstalled all of them and was still getting the error.
ReplyDeleteI ran into some problems with unicode and found the solution here: http://blog.wwwjfy.net/2011/03/02/compile-vim-7-3-in-mac-os-x-10-6-6/
Your welcome :)
ReplyDeleteThanks for this, I thought it was something wrong with my system. I'm now installing vim with brew:
ReplyDeletebrew install vim --override-system-vi --without-ruby
The flags make it match the language support I have on my Linux machines (I share my homedir - and therefore my ~/.vim and ~/.vimrc - with git).