GithubHelp home page GithubHelp logo

ohmyvim's Introduction

OH MY VIM! :)

My personal Vim setup. Using GitHub to sync between home/work/netbook. Feel free to use and/or fork your own.

Included plugins:
* rails.vim
* snippets.vim
* rspec.vim
* cucumber.vim
* git.vim
* tComment.vim
* FuzzyFinder and FuzzyFinder Textmate (needs Ruby)
* NERD Tree
* surround.vim
* ack.vim

Works best if you don't already have any Vim setup.

git clone git://github.com/sermoa/ohmyvim.git ~/.vim

Set the .vimrc file as a symlink to get updates.

ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc

Periodically, to keep up to date:

cd ~/.vim
git pull



Useful commands/shortcuts

,t - open the fuzzy finder search
,b - fuzzy finder buffer - helps you switch between open files
gc - toggle comments


Rails Vim
gf - go to file referenced under the cursor (even the class of a variable!)
:A - go to the alternate file (spec/code)
:Rake - run specs


NERD tree
,d - toggle the NERD tree (drawer)
o - expand directory
O - recursive expand
x - close parent directory

p - go to parent
P - go to root
u - go up a directory
C - set current directory to be the root.

r - refresh

o - open file in last window
i - open in a horizontal split
s - open in a vertical split

? - toggle help for more commands


Git Vim
,gs - git status
,gd - git diff
,ga - add current file
,gA - add all outstanding files (non-standard - i changed this!)
,gc - git commit
,gp - git push


Surround.vim
Visually select the text you wish to surround
Type s and then the thing you want to surround with
e.g {, (, <p>, <p class='amazing'>
It is super-clever and will insert the appropriate close for you.


Ack.vim
:Ack followed by the text you wish to ack for. It's fairly obvious how to navigate the results. Note that you will need ack installed.

ohmyvim's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.