#How to get started with mvim#
##Setup symbolic links##
ln -s /Users/nsingh/dev/vim/vimrc ~/.vimrc ln -s /Users/nsingh/dev/vim/gvimrc ~/.gvimrc ln -s /Users/nsingh/dev/vim ~/.vim
##Starting a project##
- cd to your project directory
- mvim .
In order to get it working, you need to install spidermonkey. On mac if you have port installed then you can do this sudo port install spidermonkey . To check if port is properly installed just go to command prompt and type js .
Notice that the full path to where this vim is stored is mentioned in vimrc . Search for jslint_command_options and ensure that this option has right value. Read this blog for more information.
##Installing exuberant ctags (optional)##
cd ~ mkdir src cd src curl -O http://superb-west.dl.sourceforge.net/sourceforge/ctags/ctags-5.8.tar.gz tar xzvf ctags-5.8.tar.gz cd ctags-5.8 ./configure make sudo make install
ctags has been installed at /usr/local/bin . However mac comes pre installed with ctags from a different provider. In order to make sure that exuberant ctags is found first in the path, open ~/.bash_profile and add following line.
Now let's see if exuberant ctags is properly installed.
source ~/.bash_profile > ctags --version Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert Compiled: Sep 9 2009, 11:41:52 Addresses: <email@example.com>, http://ctags.sourceforge.net Optional compiled features: +wildcards, +regex cd demo rake rails:freeze:edge RELLEASE=2.3.5 ctags -R --exclude=*.js
Now open project type in mvim and take cursor to validates_uniqueness_of method. Hit ctrl ] and now you should be inside the rails code base. To get back hit ctrl t .