vim-as-an-ide


Ⅰ. 插件描述

Workshop on how to use Vim Plugins.

Ⅱ. 基本信息

创建日期:  2015-02-25
使用用户:  1
Github星:  1836
插件作者:  Jake Zimmerman

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jez/vim-as-an-ide'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jez/vim-as-an-ide'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jez/vim-as-an-ide'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jez/vim-as-an-ide

Ⅳ. 文档说明

# Vim as an IDE

This repository is the result of a tech talk that I gave at Carnegie Mellon
University on February 25, 2015. Its central motivation is this: students who
have been instructed or told to use Vim to complete programming assignments
while ssh'ed are missing out on the vast power that lies within Vim.

There are two fronts to having an amazing Vim experience:

  1. knowing how to manipulate text using Vim's built in keyboard shortcuts
  2. having plugins that make Vim behave like users would expect from a modern
    text editor.

In my experience as a TA and fellow student, learning the former requires
the latter and vice versa, leading to a vicious cycle of Vim peril. With this in
mind, this repository aims to cure the latter, so that the vicious cycle can
end.

How to use this repository

This repository contains a sample vimrc that walks you through the changes at
each step so that you can gain an understanding of what's going on (rather than
just copying someone's vimrc!).

Each commit in this repository corresponds to __a step from the actual
workshop__. Use the list of all commits to browse the steps.
You'll see a (sometimes lengthy) explanation of what happened, and then the
diff(erence) of exactly what changed from step-to-step.

This is what you should do:

  • start at the first commit
  • read the commit message and GitHub comments
  • copy the changes
  • repeat

It's that simple. Depending on how fast you read and how in-depth you want to
go, you could easily have a fully-configured* Vim setup in about an hour.

Once you've done this, the hard part is learning to use what you just installed!
I went back through and added some usage information and links to references on
the GitHub comments, so be sure to check them out.

Table of Contents

Even though you can install this file outright, you should really look through
the steps for more information about what's going on.

Note: every time you add a new Plugin ... line, you'll have to run

vim +PluginInstall +qall

As you're following along these steps, if you want to check whether what you see
matches up with what my setup looks like after a given step, jump over to [this
post](http://blog.jez.io/2015/03/03/vim-as-an-ide/).

Update (2016-11-12)

I've taken a pass through to update some of the more outdated commits.
Unfortunately, this means some links have become broken. You can still find
links to these steps by going to the branch original. If you find outdated
links anywhere here, please let me know.

Installation Instructions

If you just want to use this file as your vimrc, no questions asked,

  1. Move your ~/.vimrc file and ~/.vim folder somewhere else for now.
  2. Download Vundle
  3. Change your terminal colorscheme to solarized
  4. Install a patched font
  5. Download the file vimrc.vim and rename it to ~/.vimrc
  6. Run vim +PluginInstall +qall
  7. ???
  8. Profit!

Now that I'm a plugin master, I want to...

__In order to teach people plugins, I had to sacrifice teaching people how to
tap into the power of editing in Vim, which comes from using the keyboard over
the mouse.__ Please, take a little time to learn how to actually use Vim!

* When I say _fully-configured_, I mean _actually usable_. It can be argued that
Vim is never fully-configured: everyone's preferences are different, and
circumstances change. Configuring your text editor is really a continuous
process!

添加新评论