资源说明:my awesome vim setup
# sohooo's VIM config This setup is based on various sources all around github. Huge credits go to: * [mutewinter's dotvim](https://github.com/mutewinter/dot_vim) * [skwp's dotfiles](https://github.com/skwp/dotfiles) * [MacVim w/ Drawer](https://github.com/alloy/macvim) ## Screenshots ### Code View ![MacVim with Drawer](http://dl.dropbox.com/u/393159/macvim/macvim_sohooo.png "Macvim") ### Distraction Free ![Distraction-free Markdown](http://dl.dropbox.com/u/393159/macvim/distraction-free.png "Distraction-free Markdown environment") ## Installation 1. `cd; git clone http://github.com/sohooo/vimfiles.git .vimfiles` in your home folder. 2. `ln -s .vimfiles .vim && ln -s .vimfiles/vimrc .vimrc` to make the symbolic links. 3. Install the awesome [Vundle](https://github.com/gmarik/vundle) with `git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle` 4. Start Vim and type `:BundleInstall` to install the plugins defined in `.vimrc`. 5. Enjoy! ## Bindings Here's a list of useful keyboard bindings: * `ctrl-shift-d` OS X File Drawer * `,d` toggle NerdTree * `,f` find file w/ CtrlP * `,y` show YankRing * `,n` toggle IndentGuides * `,u` toggle UndoTree * `gcc` toggle comment on/off * `,vim` edit vimrc * `,vir` edit README.md (to look up bindings) * `,tt` change tabs * `jj` remap von ESC; this rox! * `F9` toggle paste/nopaste * `F10` toggle number/nonumber ### CtrlP * `` movement * ` ` open in tab * ` ` open in vertical split * ` ` open in horizontal split * ` ` mark file to open with ` ` * ` ` clear search field * ` ` create a new file and (parent dir) ### Fugitive * `:Gdiff` show diff * `:Gstatus` toggle files with `-` ### Tabular * `,t=` align = * `,t>` align => ### Vundle * `,bi` BundleInstall * `,bu` BundleUpdate * `,bc` BundleClean ### ShowMarks * `,mt` toggles ShowMarks on and off * `,mh` hides an individual mark * `,ma` hides all marks in the current buffer * `,mm` places the next available mark ### EasyGrep * `,vv` search word under cursor * `,vr` replace word under cursor * `,vo` EasyGrep Options * `:cw` result list * `ctrl+w enter` open result (in CW) ## Other Tips ### Statusbar Fonts For an even prettier status bar, use one of the patched fonts from the [Powerline wiki](https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts). ### Distraction-free Writing Distraction-free writing a la iAWriter is supported via [a plugin from LakTEK](http://laktek.com/2012/09/05/distraction-free-writing-with-vim/). Toggle the view with `F4`, and don't forget to disable the OSX native fullscreen view: defaults write org.vim.MacVim MMNativeFullScreen 0 You also need the [Cousine Font from Google](http://www.fontsquirrel.com/fonts/cousine) as a free alternative to Nitti Light.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。