Giter Site home page Giter Site logo

vim's Introduction

Vim config

Install

To install clone the repo in your home directory:

$ cd ~/
$ git clone [repo_url] vim

Next you will need to update the plugins which are git submodules:

$ cd vim
$ git submodule init
$ git submodule update

Also you need to create a directory for vim to save backups of files you work on:

$ mkdir sessions

Finally, set up symlinks so vim can pick up the config:

$ cd ~/
$ ln -s ~/vim ~/.vim
$ ln -s ~/vim/vimrc .vimrc

Now when you open vim you should be good to go.

Tags

You may want to use tags to aid with completion. If you're on linux you'll want to install exuberent ctags:

$ sudo apt-get install exuberant-ctags

If you're on a mac you will need to install ctags with macports as the version that ships with mac is not compatible:

$ sudo port install ctags

This will install in /opt/local/bin/ctags

Once installed you can use the following to create a php tags file relative to the directory in which you run the command.

$ /opt/local/bin/ctags -f ./tags -h ".php" -R --exclude="\.svn" --totals=yes --tag-relative=yes --PHP-kinds=+cf --regex-PHP="/abstract class ([^ ]*)/\1/c/" --regex-PHP="/interface ([^ ]*)/\1/c/" --regex-PHP="/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/"

Which will create a file called tags in the current directory. You can get vim to use this tags file with:

:set tags=/path/to/tags

vim's People

Contributors

rojoca avatar chrismckinnel avatar

Stargazers

 avatar Michal Szczesny avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

chrismckinnel

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.