unleash your vim - 20131014

26
开始 up down left right 翻页 ESC 纵览 F 全屏 下载 PDF

Upload: yuheng-zhang

Post on 12-Jul-2015

793 views

Category:

Technology


7 download

TRANSCRIPT

  • up down left right

    ESC F

    PDF

  • unleash your VimVim

    Created by / @zyhack

  • Vim

  • vundle -- airline -- ctrlp -- neosnippet -- syntastic -- gitgutter -- git fugitive -- git

  • vundle"" github ""

    step_1

    Bundle 'scrooloose/nerdtree'Bundle 'altercation/vim-colors-solarized'Bundle 'kien/ctrlp.vim'Bundle 'terryma/vim-multiple-cursors'Bundle 'matchit.zip'Bundle 'Lokaltog/vim-powerline'Bundle 'bling/vim-airline'Bundle 'Lokaltog/vim-easymotion'Bundle 'myusuf3/numbers.vim'Bundle 'vim-scripts/restore_view.vim'Bundle 'airblade/vim-gitgutter'Bundle 'scrooloose/syntastic'Bundle 'tpope/vim-fugitive'Bundle 'scrooloose/nerdcommenter'Bundle 'godlygeek/tabular'Bundle 'majutsushi/tagbar'Bundle 'garbas/vim-snipmate'Bundle 'honza/vim-snippets'Bundle 'Shougo/neocomplcache'Bundle 'Shougo/neosnippet'Bundle 'honza/vim-snippets'Bundle 'Shougo/neocomplete.vim.git'Bundle 'Shougo/neosnippet'Bundle 'honza/vim-snippets'Bundle 'elzr/vim-json'Bundle 'pangloss/vim-javascript'Bundle 'amirh/HTML-AutoCloseTag'Bundle 'hail2u/vim-css3-syntax'Bundle 'tpope/vim-haml'

  • step_2:BundleInstall or :BundleInstall! :BundleUpdate :BundleClean or :BundleClean! :BundleList :BundleSearch

  • step_3

  • airline:paste git

  • airline

  • ctrlp file, buffer, mru

    Vim findermac

  • ctrl + p ctrlp ctrl + f ctrlp file/buffer/mructrl + c ctrlp

  • ctrlp

  • neosnippet

    tab ctrl + n ctrl + p ctrl + k /

  • python

  • go

  • perl pod

  • html

  • javascript

  • syntastic

  • gitgutter & fugitive git

  • gitgutter/

  • gitgutter

  • fugitive git

    :Git [args] Run an arbitrary git command. Similar to :!git [args] but chdir to the repository tree first.

    *fugitive-:Git!*:Git! [args] Like |:Git|, but capture the output into a temp file, and edit that temp file.

    *fugitive-:Gcd*:Gcd [directory] |:cd| relative to the repository.

    *fugitive-:Glcd*:Glcd [directory] |:lcd| relative to the repository.

    *fugitive-:Gstatus*:Gstatus Bring up the output of git-status in the preview window. The following maps, which work on the cursor line file where sensible, are provided:

    next file previous file |:Gedit| - |:Git| add - |:Git| reset (staged files) cA |:Gcommit| --amend --reuse-message=HEAD ca |:Gcommit| --amend cc |:Gcommit| cva |:Gcommit| --amend --verbose cvc |:Gcommit| --verbose D |:Gdiff| ds |:Gsdiff| dp |:Git!| diff (p for patch; use :Gw to apply) dp |:Git| add --intent-to-add (untracked files) dv |:Gvdiff| O |:Gtabedit|

  • fugitive :gd tab vimdiff git diff

  • -- vim spf13

  • Thanks!happy Viming!