Skip to content

neerajsingh0101/vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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 .

##Installing JavaScriptLint##

  • JavaScriptLint is a tool that inspects validity of JavaScript code every time a JavaScript file is saved. It will flag you if you have a missing semicolon.

  • 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 .

  • JavaScriptLint has been included in this vim setting. Add the following line to your ~/.bashrc so that at command prompt you can type jsl .

    export PATH="/Users/nsingh/dev/vim/jsl-0.3.0-mac:$PATH"

  • 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.

export PATH="/usr/local/bin:$PATH"

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: <dhiebert@users.sourceforge.net>, 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 .

About

My vim configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published