• 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
  • 相关阅读:
    PHP mysqli 扩展库(面向对象/数据库操作封装/事务控制/预编译)
    php 下载文件的函数
    PBOC电子钱包与电子现金及QPBOC
    基于PBOC电子钱包的消费过程详解
    PBOC规范下的java卡介绍
    基于PBOC电子钱包的圈存过程详解
    电子钱包和电子现金的区别
    DES,3DES,AES这三种对称密钥的区别与联系
    密钥体系
    关于卡片的主控密钥和应用主控密钥
  • 原文地址:https://www.cnblogs.com/ericsun/p/3292867.html
Copyright © 2020-2023  润新知