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
  • 相关阅读:
    TDengine在上海电气储能智慧运维系统中的应用
    一文带你理解TDengine中的缓存技术
    taosAdapter正式发布:支持从OpenTSDB向TDengine无缝迁移
    TDengine 在中节能风力发电运维系统中的落地实践
    格创东智选择 TDengine,实现海量数据实时全生命周期管理
    TDengine 在水电厂畸变波形分析及故障预判系统中的应用
    使用wireshark抓包分析TCP三次握手
    K8s中 蓝绿部署、金丝雀发布、滚动更新汇总
    K8s运维锦囊,19个常见故障解决方法
    一次由 Kubernetes HostPort 引发的服务故障排错记实
  • 原文地址:https://www.cnblogs.com/ericsun/p/3292867.html
Copyright © 2011-2022 走看看