GithubHelp home page GithubHelp logo

.vim's Introduction

ck89119's vimrc

Author: Cao (ck89119) Kai [email protected] inspired by vgod https://github.com/vgod/vimrc

ONE-STEP INSTALL

Use curl:

 curl -o - https://raw.github.com/ck89119/.vim/master/auto-install.sh | sh

or wget:

 wget -O - https://raw.github.com/ck89119/.vim/master/auto-install.sh | sh

MANUALLY INSTALL

  1. Check out from github

     git clone git://github.com/ck89119/.vim.git ~/.vim
     cd ~/.vim
     git submodule update --init --recursive
    
  2. Install YCM

     cd bundle/YouCompleteMe
     sudo apt-get install build-essential cmake
     sudo apt-get install python-dev
     ./install.py --clang-completer
    
  3. Install ~/.vimrc

     cd ~/.vim
     ./install-vimrc.sh
    

INSTALL & UPGRADE PLUGIN BUNDLES

All plugins were checked out as git submodules, which can be upgraded with git pull. For example, to upgrade easymotion

 cd ~/.vim/bundle/easymotion
 git pull

To install a new plugin as a git submoudle, type the following commands.

 cd ~/.vim
 git submodule add [GIT-REPOSITORY-URL] bundle/[PLUGIN-NAME]

PLUGINS

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

  • NerdTree: 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
    F6 toggle the NerdTree

  • nerdcommenter: Easy to (un)comment code.

    Useful commands:
    ,cc comment out the current line or text selected in visual mode
    ,cu uncomments the selected line(s)

  • YouCompleteMe: A code-completion engine for Vim.

  • UltiSnips: The ultimate snippet solution for Vim.

    Useful commands:
    F9 active related snippet

  • vim-surround: Deal with pairs of surroundings.

    Useful commands:
    cs"' inside "Hello world!", then "Hello world!" => 'Hello world!'

  • EasyMotion: An easy way to jump to a word.

    Useful commands:
    ,,w forward EasyMotion
    ,,b backward EasyMotion

  • TagBar: browsing the tags of source files ordered by classes.

    Useful commands:
    F7 toggle the TagBar

Other good references

.vim's People

Contributors

ck89119 avatar

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.