Giter VIP home page Giter VIP logo

vimrc's Introduction

vimrc for UNIX Web Developers (PHP/C/C++/Lua/JavaScript/HTML/CSS)

Goal

This vimrc aimes to collect some useful plugins for web developers working under UNIX and using PHP, C/C++, Lua, JavaScript, etc.

This is based on brooky-yen''s vimrc (https://github.com/brooky-yen/vimrc) I adjust the bundle list for this vimrc to focus on web development, and share with my colleagues.

I also added the chinese help documentation of VIM 7.2, see by type :h.

Author: hightman [email protected]

Requisites

The distribution is designed to work with Vim >= 7.2.

The distribution also requires ack, ctags, git, ruby and rake. I recommend using the GUI version of VIM (gvim on Linux and Windows, MacVim on OSX) for some plugin only support GUI version (e.g. Command-T). You can download MacVim here.

Useful vim Plugins included

INSTALL

  1. clone this vimrc

    git clone https://github.com/hightman/vimrc.git
    
  2. Run the install script

    sh vimrc/install.sh
    

    Notice: This step may cost much longer time for configuring & install bundles.

  3. Finished! Enjoy it :-)

Conventions

  • Backup enabled, the BAK file is saved as ~/.vim/bak/$NAME~

  • Swap file is moved to ~/.vim/tmp/$NAME.swp

  • Shourtcuts, the <leader> key is ;

    • ;w Save & quit
    • ;q Force to quit without saving
    • ;r Replace the current word in all opened files
    • ;er Open the error console
    • ;p Toggles pastle mode with normal mode
    • ;g Include guard for C source/header file
    • ;s Clear search highlighting
    • ;b Open the BufExplorer in current window
    • + - Quickly adjust size of current splitted window
    • Shift-W Loop to switch splitted window
    • Ctrl-J Ctrl-K Move to below/above splitted window and maxmize it
    • Ctrl-H Ctrl-L Move to left/right splitted window and maxmize it under normal mode
    • Double press Ctrl-T to open new tab
    • Ctrl-T + Ctrl-W to open the current tab
    • :cd. Change the working directory to that of the current file
    • Ctrl-[ Ctrl-] Ctrl-\ Jump/Back out of the tag stack
    • F7 ;t Toggle Tagbar
    • F3 ;n Toggle NerdTree Tabs
    • F6 ;sy Manually Syntax check by syntastic plugin
    • F2 ;y Open yanking history
    • ;pm ;pf ;jm Open online PHP_Manual, PHP_Function, JQuery_Manual
    • Ctrl-P ;f Invoke CtrlP to find files
    • ;ut ;ht Update/Highlight tags by vim-easytags

vimrc's People

Contributors

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