Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dstanek committed May 1, 2012
0 parents commit 642cf49
Show file tree
Hide file tree
Showing 18 changed files with 1,564 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 00_start.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 5 minutes in vim heaven #


david stanek <[email protected]>
[blog](http://traceback.org)

may 1, 2012
11 changes: 11 additions & 0 deletions 01_intro.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# let't get crazy! #


* this can be a 45 hr talk and you'll get to see it in 5 minutes!

* you don't have to memorize everything because it's aleady on
[github](https://github.com/dstanek/5-minutes-in-vim)

* i'm happy to help you with your vim configs

* i'm happy to have longer demos or whatever
19 changes: 19 additions & 0 deletions 02_agenda.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# agenda: in case i don't get through it all #


* plugins
* pathogen
* command-t
* snipmate
* gundo
* tasklist

* completion

* misc stuff
* line numbering
* crosshairs
* retab
* buffer shortcut

* but wait...there's more!
3 changes: 3 additions & 0 deletions 03_plugins.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# plugins i use #

## and you should^H^H^H must be using too ##
21 changes: 21 additions & 0 deletions 04_pathogen.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# pathogen is gitastic #


* allows plugins to be installed as bundles:

tmux:0

* use git submodules to manage you plugins

tmux:1

* this is not optional if you are sane

* as easy to configure as:

" {{{ pathogen setup

runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()

" }}}
8 changes: 8 additions & 0 deletions 05_command_t.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# command-t is rubylicious #


* better than buffers alone

* needs vim with ruby support compiled in

% goto: vim:2
14 changes: 14 additions & 0 deletions 06_snipmate.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# snipmate remove redundant typing #


* comes with a ton of templates

* you can create your own too!

* <tab> for the win!

* supports several languages out of the box

* quick Python demo - %vim:3

* quick Java demo - %vim:4
14 changes: 14 additions & 0 deletions 07_gundo.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# gundo navigates the tree of changes
# %vim:5
#

Given a file where I made a set of changes
And backed them out
And made some more changes
When I type ,U
Then I will see the change graph


Given that same file showing the change graph
When I type ,U
Then I will the graph panel will close
3 changes: 3 additions & 0 deletions 08_misc_stuff.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# misc. stuff #

## a grab bag of yummy goodies! ##
14 changes: 14 additions & 0 deletions 09_line_numbering.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# line numbering made easy
# %vim:5
#

Given a large Python file
And line numbering enabled
When I type ,n
Then line numbering will be disabled


Given a large Python file
And line numbering disabled
When I type ,n
Then line numbering will be enabled
14 changes: 14 additions & 0 deletions 10_crosshairs.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# badass cross hairs
# %vim:5
#

Given a large Python file
And crosshairs disabled
When I type ,c
Then crosshairs will be enabled


Given a large Python file
And crosshairs enabled
When I type ,c
Then crosshairs will be disabled
11 changes: 11 additions & 0 deletions 11_more.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
= but wait...there's more! =

* refactoring with rope

* ctags

* pylint

* pep8

* redbar/greenbar
17 changes: 17 additions & 0 deletions cheatsheets/command-t.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Activate
,t

Select
<cr>
- or -
<c-enter>

Next/Prev
<c-n>
<c-p>

Cancel
<esc>
- or -
<c-c>
Empty file added example/java/SnipExample.java
Empty file.
Empty file added example/python/snip_example.py
Empty file.
13 changes: 13 additions & 0 deletions old.11_retab.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tab and retab went into a bar
#

Given a file that mixes tabs and spaces
When I run :retab
Then the entire file is converted according
To my tab settings


Given a file that mixes tabs and spaces
When I run :retab on selected lines
Then the selected lines are converted according
To my tab settings
Loading

0 comments on commit 642cf49

Please sign in to comment.