Coder Social home page Coder Social logo

vimrc's Introduction

Malaney's vimrc (Fork of vgod's vimrc https://github.com/vgod/vimrc)

Author: Malaney J. Hill [email protected]

This vimrc compiles some of the best ideas I've seen in vimrc's across the net including Tobias Schlitt's VIM integration for PHP and other's. It relies heavily on Tim Pope's Pathogen plugin to facilitate inclusion of all plugins within their own sub-directories within the "~/.vim/bundle" sub-directory.

HOW TO INSTALL

  1. Backup your original ~/.vim and ~/.vimrc $ mv ~/.vim ~/.vimbkup && mv ~/.vimrc ~/vimrc.bak && ~/.gvimrc ~/gvimrc.bak

  2. Check out from github

     $ git clone git://github.com/malaney/vimrc.git ~/.vim
     $ cd ~/.vim
     $ sh install-vimrc.sh
    
  3. (Optional, if you want Command-T) Compile the Command-T plugin

     $ cd .vim/bundle/command-t/ruby/command-t
     $ ruby extconf.rb
     $ make
    

WORKING WITH PLUGIN BUNDLES

To add a bundle - git submodule add <git/repo/url> bundle/ - git submodule update --init - git commit To remove a bundle - Remove from .gitmodules - git rm --cached bundle/ - git commit To upgrade bundle - cd bundle/ - git pull

UPGRADE PLUGIN BUNDLES

All plugins (except vim-latex) were checked out as git submodules, which can be upgraded with git pull. For example, to upgrade Command-T

 $ cd ~/.vim/bundle/command-t
 $ git pull

HOW TO USE

see the "USEFUL SHORTCUTS" section in vimrc to learn my shortcuts.

PLUGINS

  • Pathogen: Pathogen let us install a plugin as a bundle in ~/.vim/bundle seprately.

  • Nerd Tree: A tree explorer plugin for navigating the filesystem.

    Useful commands:

    • :Bookmark [name] - bookmark any directory as name
    • :NERDTree [name] - open the bookmark [name] in Nerd Tree
  • AutoClose: Inserts matching bracket, paren, brace or quote.

  • vim-surround: deal with pairs of surroundings.

  • matchit: extended % matching for HTML, LaTeX, and many other languages.

  • xmledit: XML/HTML tags will be completed automatically.

  • Command-T: open and navigate between files with cmd-t.

  • SuperTab: Do all your insert-mode completion with Tab.

  • snipMate: TextMate-style snippets for Vim

    :help snipMate to see more info.

  • YankRing: Maintains a history of previous yanks, changes and deletes

    :help yankring to see more info.

  • VisIncr: Produce increasing/decreasing columns of numbers, dates, or daynames.

  • Cute Error Marker: showing error and warning icons on line.

    Note: MacVim users need to enable "Use experimental renderer" to see graphical icons.

  • vim-latex: Latex support.

  • OmniCppComplete: C/C++ omni-completion with ctags database.

  • JavaComplete: Java Omni-completion.

  • VCSCommand: Extremely useful vim front-end to git/svn/hg/bzr/cvs

  • PDV--phpDocumentor-for-Vim: Auto-generates doc blocks for PHP code

  • Vim-Fuguitive: A Git wrapper for vim

Language specific supports

  • Latex: Read :help latex-suite.txt
  • Restructured Text: ctrl-u 1~5 inserts Part/Chapter/Section headers
  • HTML, Javascript, Python, CSS, C, C++, Java: use TAB to do omni-completion.
  • HTML/XML: End tags are automatically completed after typing a begin tag. (Typing > twice pushes the end tag to a new line.)

Other good references

vimrc's People

Contributors

vgod avatar malaney avatar

Stargazers

Darryle Steplight avatar  avatar

Watchers

 avatar James Cloos 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.