zoukankan      html  css  js  c++  java
  • Fly Vim, First-Class

    http://corner.squareup.com/2013/08/fly-vim-first-class.html

    Engineers at Square use a wide variety of code editors: Sublime, IntelliJ, Xcode, and Vim are among the most popular. Over time, the Square Vim enthusiasts have compiled settings, shortcuts, and plugins into a single repo we lovingly call Maximum Awesome, which we are open-sourcing today! We want anyone running OS X to be able to get up and running with Vim in minutes.

    Vim using Maximum Awesome: NERDTree, and Command-T plugins open

    Maximum Awesome comes with many of the features you expect from a full IDE: syntax highlighting, code completion, error highlighting, etc. But it doesn’t stop there! To get things started, here are just a few of my favorite plugins and shortcuts:

    • Shared Clipboard: The Vim register and OS X clipboard are kept in sync, so I can move code around just like any native application.
    • Command-T Plugin: For those who use Sublime or TextMate, this superpower will already be familiar. While in Vim, use the shortcut ,t and type just a few letters to open the file you want.
    • NERDTree Plugin: Browse a project’s file structure, move files, or create new ones, all without ever leaving the comfort of Vim. Use ,d to toggle the drawer, or use ,f to open NERDTree to the current file.
    • Git Integration: The fugitive plugin has most git commands covered, but the Vim-specific ones I love are :Gblame and :Gdiff. I can easily understand who wrote different parts of a file with :Gblame or get a side-by-side comparison of what I’ve just written using :Gdiff.
    • Quickly Comment Code: Use \ to quickly comment out a line or \ on a visual selection.

    There are also some components included beyond Vim. Maximum Awesome comes with iTerm 2, a replacement for Terminal, a tmux config, and the Solarized color scheme. This just scratches the surface, though. Hop over to the README for a more exhaustive list.

    Installing

    On your Mac, Maximum Awesome will set everything up automatically for you. Just run the command below in your terminal:

    git clone https://github.com/square/maximum-awesome.git && cd maximum-awesome && rake

    Symlinks are created in your home directory that point to the repo so updating is as easy as git pull && rake. If you already had Vim or tmux config files, they’ve been backed up. For example, your old .vim directory is now .vim.bak. Keep reading about “Customizing” if you want to incorporate your existing settings.

    Having problems installing? Open an issue on GitHub and we’ll take a look right away.

    Customizing

    In your home directory, Maximum Awesome creates a .vimrc.local file where you can customize Vim to your heart’s content. However, we’d love to incorporate your changes and improve Vim for everyone, so feel free to fork Maximum Awesome and open some pull requests!

    Happy Vimming

    Whether you’re the type of person with an hjkl shirt, or just trying out Vim for the first time, we hope Maximum Awesome makes writing code easier. Enjoy!

    Engineer, Driver. "If everything seems under control, you're not going fast enough." — Mario Andretti
  • 相关阅读:
    java面试-synchronized底层实现机制
    java面试-内存分配与回收策略
    java面试-对象的创建、内存布局、访问定位
    推荐算法-余弦相似度
    推荐算法-欧几里得距离
    MySQL总结
    MySQL事务
    MySQL-一条sql语句的执行顺序
    mysql 表格操作指令大全(Show、desc、create、insert into、delete、select、drop、update、alter)
    mysql 创建数据数据库 (避免新建的库名已经存在、设置编码)
  • 原文地址:https://www.cnblogs.com/ericsun/p/3292867.html
Copyright © 2011-2022 走看看