Giter Site home page Giter Site logo

subastkar / vim-for-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from framallo/vim-for-rails

1.0 1.0 0.0 1017 KB

This is the awesome config files to develop Ruby on Rails with vim

Home Page: http://github.com/framallo/Vim-for-Rails

Python 43.48% Shell 0.06% Vim Script 56.46%

vim-for-rails's Introduction

The awesome Vim config files

This will allow you to run mac vim and develop on Ruby on Rails.

Some features include:

  • nice theme for gui and terminal with 16 colors. (ir_black and xterm16)
  • incremental Search that ignore case by default
  • Swap and backup out of your way

to install: you need to install macvim. If you are using OSX with macports you can run: sudo port install macvim +ruby

WARNING: The +ruby variant depends on ruby from macport! this could reinstall a new ruby env! You only require ruby support for command-t plugin. So you could remove +ruby to install it without ruby support:

then add the config files:

git clone git://github.com/Subastkar/Vim-for-Rails.git ~/.vim

cd ~/.vim
git submodule init
git submodule update

Then you need to load on ~/.vimrc. e.g.:

source ~/.vim/vim-for-rails.vim
colorscheme molokai

Then you need to load on ~/.gvimrc. e.g.:

source ~/.vim/gvim-for-rails.vim

USAGE

 -----------------------------------------------------------------------------  
 |                            VIM Settings                                   |
 |                   (see gvimrc for gui vim settings)                       |
 |                                                                           |
 | Some highlights:                                                          |
 |   jj = <esc>  Very useful for keeping your hands on the home row          |
 |   ,n = toggle NERDTree off and on                                         |
 |   ,N = find current file in  NERDTree                                     |
 |                                                                           |
 |   ,FC = fuzzy find coverage files (or ,f)                                 |
 |   ,FF = fuzzy find files                                                  |
 |   ,FD = fuzzy find directory                                              |
 |   ,FL = fuzzy find in lines                                               |
 |   ,FB = fuzzy find buffers                                                |
 |   ,FR = fuzzy find refresh files                                          |
 |   ,p = go to previous file                                                |
 |   ,t = toogle taglist                                                     |
 |                                                                           |
 |   ,h = new horizontal window                                              |
 |   ,v = new vertical window                                                |
 |                                                                           |
 |   ,i = toggle invisibles                                                  |
 |                                                                           |
 |   enter and shift-enter = adds a new line after/before the current line   |
 |                                                                           |
 |   :call Tabstyle_tabs = set tab to real tabs                              |
 |   :call Tabstyle_spaces = set tab to 2 spaces                             |
 |                                                                           |
 | Put machine/user specific settings in ~/.vimrc.local                      |
 -----------------------------------------------------------------------------  

Keyboard Layout

I use english keyboard layout since is the most efficient layout for development. Also I use the Caps Lock key as control key.

Wish List

Things i want to include, build, improve, etc

  • Git grep inside vim
  • mvim should open a new tab and pwd should be set to the current file
  • running 'mvim' or 'mvim .' should open the NERDTREE by default and an empty window on the right

See it

!http://s3.amazonaws.com/tangosource_pm/100824164544/100824164544_Screen_shot_2010-08-24_at_11.36.20_AM.png!

Thanks

Thanks to twerth for his config files Thanks to Rafa for introducing me to the world of mac and spending some time testing this config! :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.