Commit graph

254 commits

Author SHA1 Message Date
Dan Croak
80b77cdefc Run specs directly from vim
* Run current spec file.
* Run spec nearest cursor.
* Run last spec that was run.
* Convert s alias to s script, use Zeus if present.
2012-11-19 09:04:34 -08:00
Dan Croak
126344c3cb Install Vundle
* Set up Vundle in vimrc.
* Delete old copies of vim scripts.
* Bundles are automatically set up as referenced submodules.
* Ignore .netrwhist files given presence of submodules.
* Set up vundle in install script.
2012-11-16 10:00:33 -08:00
Dan Croak
d8adb07377 Add git-churn script
After you commit a bug fix to a feature branch, find out if the code
you changed to fix the bug is in files that change often:

    git-churn

If the buggy code changes often, find smells and refactor them. Separate
the parts that change often from the parts that don't.

Conversely, avoid refactoring areas with low churn. Refactoring changes
code, and with each change, you risk introducing new bugs.

Example:

     [feature-branch][~/dev/rails-app] churn
     2 app/controllers/accepts_controller.rb
     2 config/database.yml
     4 app/helpers/application_helper.rb
     4 config/application.rb
     9 spec/models/user_spec.rb
     9 spec/spec_helper.rb
    12 spec/requests/dashboard_spec.rb
    13 spec/models/feedback_spec.rb
    19 app/models/feedback.rb
    21 app/models/user.rb
2012-11-15 22:46:10 -08:00
Joe Ferris
84ce5cc1ba Improve Markdown integration
* Default Vim configuration detects .md files as modula
* Replaces default config so that .md is detected as markdown

Resolves #71.
2012-11-14 13:51:11 -05:00
Dan Croak
9b3e09e962 Switch between the last two files 2012-11-10 17:50:08 -08:00
Christian Schlensker
5a4eb4661b Implement a smarter tab completion function
Credit: Gary Bernhardt
2012-11-10 15:34:01 -08:00
Dan Croak
397312ee8b Simplify tmux status bar
* Remove administrative debris (session name, hostname, time).
* Soften colors from harsh green to grayscale.
2012-11-07 17:31:20 -08:00
Dan Croak
675f4d808a Map Leader to Space
Many others map Leader to ,. However, , is a built-in command which repeats the
last character find backwards, which can be quite useful.
2012-10-31 22:46:58 -07:00
Dan Croak
c7efed4f0c Fix tab completion
* Add mapping for tab completion so Ctrl+P isn't necessary.
* Add a mapping to re-index ctags quickly from vim.
* Add explaining comment to Tlist.
2012-10-24 21:36:56 -07:00
Dan Croak
d836af8afd Add fugitive.vim
Features include:

* :Gblame for interactive vertical split with git blame output.
* :Ggrep to search the work tree (or any arbitrary commit) with git grep,
  skipping over that which is not tracked in the repository.
* :Glog loads all previous revisions of a file into the quickfix list so
  you can iterate over them and watch the file evolve.
* :Gbrowse to open the current file on GitHub, with optional line range
  (try it in visual mode).
2012-10-23 23:26:21 -07:00
Dan Croak
52b2ee106e Document "DO NOT EDIT BELOW THIS LINE" convention 2012-10-21 15:10:47 -07:00
Dan Croak
0060e0ab25 Add .gitignore 2012-10-21 14:54:19 -07:00
Gabe Berke-Williams
61222a432e Direct link to why we set noswap 2012-10-15 15:36:51 -04:00
Dan Croak
f893537686 Add basic git aliases
* Fast commits.
* Fast rebase of origin into feature branch.
* Fast merge feature branch into master.
* Fast branch creation.
* Fast branch deletion.

Conflicts:

	gitconfig
2012-10-08 20:30:29 -07:00
Joshua Clayton
d16a4fe36c Tab-complete ack by looking at the tags file 2012-09-27 08:28:13 -04:00
Dan Croak
3ef63fef9a Set tmux to use reattach-to-user-namespace
* Improves tmux compatibility with other systems.
* Better copy-paste: http://goo.gl/DN82E.
* Better RubyMotion: http://goo.gl/WDlCy.
2012-09-25 22:06:48 -07:00
Dan Croak
6c9bdf8f69 Tell vim to not create swap files 2012-09-22 19:32:22 -07:00
Adarsh Pandit
5476eaf7aa Update README and add MIT-LICENSE
* Update copyright year
* Add Credits section
* Add MIT license file
2012-09-18 23:10:20 -07:00
Dan Croak
17c91b2dbb Add .ackrc
Certain files, such as Haml, Cucumber, Sass, and Coffeescript are not
searchable by `ack`. The `.ackrc` file adjusts this.
2012-09-15 13:59:19 -07:00
Dan Croak
4882c418fd Improve Rails-related aliases
* Remove `help-strftime` (rarely call it).
* Remove `be` and `bundle exec` (using `bundle --binstubs` now).
* Add `t` command for running isolated `Test::Unit` tests.
* Remove MongoDB migrate (rarely use Mongo).
* Rename `staging` to `staging-console` to better reveal intent.
* Remove `db-pull-*` commands (`pg_restore` is new best practice).
2012-09-15 12:07:10 -07:00
Dan Croak
87b528b8f3 need to rake in the migrate, remigrate, and remongrate tasks. 2011-12-21 10:55:41 -05:00
Dan Croak
87685f1fbf improve documentation to make suggestions about where to put your own customizations 2011-12-07 18:35:29 -05:00
Dan Croak
352dcade99 don't require heroku to be in your project's bundle 2011-12-04 18:30:18 -05:00
Dan Croak
326ceb44e4 Working hard to make the README instructions extremely clear for newcomers and workshop students. 2011-12-04 18:22:58 -05:00
Dan Croak
6458ae7015 one more db backup command alias 2011-12-04 15:45:34 -05:00
Dan Croak
cbea59babc organized aliases by category (Unix, git, Bundler, Rubygems, Rails, Heroku). added some intense Heroku aliases for introspecting on your app and also interacting with your database 2011-12-04 15:09:54 -05:00
Dan Croak
de071e9c34 switch to github vim color scheme 2011-12-04 14:51:53 -05:00
Dan Croak
fdc8afcd19 adding a global .gitconfig that by default tracks branches (so you can 'git push' from a branch it only pushes to the tracking branch you're in) and also provides a tighter, more colorful git log 2011-10-24 10:30:50 -04:00
Dan Croak
318b6202fb Merge pull request #9 from croaky/master
Coffeescript for vim
2011-10-24 07:26:54 -07:00
Dan Croak
1a8d7cf5f6 coffeescript detection, indentation, and syntax highlighting for vim 2011-10-22 19:59:14 -04:00
Dan Croak
9495c56e81 Some new aliases: "bake" for bundle exec rake, "staging" for getting into a heroku cedar staging console, "production" for same thing, diff env 2011-10-22 20:43:57 -03:00
Mark Wolfe
b89501eede Now posix compatible and I have removed the use of tail -r 2011-10-15 18:33:17 +11:00
Dan Croak
dc4c65e7ca use screen-256-color for tmux so that certain color schemes in vim look breathtakingly vibrant 2011-09-06 16:25:06 -04:00
Dan Croak
acbf0b3f32 Merge pull request #4 from croaky/master
Added basic tmux configuration
2011-08-20 06:49:58 -07:00
Dan Croak
16cae933e9 adding tmux.conf 2011-08-11 12:16:32 -04:00
Dan Croak
c70fca54f3 Adding line about switching to zsh. 2011-08-10 11:32:44 -03:00
Gabe Berke-Williams
d57e4509e9 Add :Cuc 2011-07-25 13:44:56 -04:00
Mike Burns
8bc7328922 Merge pull request #3 from qrush/717cf442b071a715b097c7504926b30ad2bdaf36
Split out aliases. Add three ls aliases and some cd improvements.
2011-06-27 11:22:35 -07:00
Dan Croak
57949f53f9 Better instructions for keeping a fork updated. 2011-05-02 08:33:53 -07:00
Nick Quaranto
717cf442b0 add in zshkit fun stuff 2011-04-04 10:27:03 -04:00
Nick Quaranto
7ac2f90571 Add ls aliases 2011-04-04 10:27:03 -04:00
Dan Croak
ead8c516ed adding quotes around Ctrl bindkeys to stop warnings when starting a new shell 2011-03-25 09:45:53 -04:00
Dan Croak
e246ac95f9 'when' instructions 2011-03-24 13:36:59 -04:00
Dan Croak
2f2d20e714 more complete instructions for flow 2011-03-24 13:35:49 -04:00
Dan Croak
36b67fefd4 adding instructions to README for tracking thoughtbot/dotfiles repo 2011-03-24 13:14:28 -04:00
Dan Croak
f93e665cbb allow backspacing in vim. this isn't a police state. 2011-03-25 01:10:08 +08:00
Joe Ferris
e168efc810 Use vividchalk by default 2011-03-24 13:07:46 -04:00
Mike Burns
ea2569ca19 Some useful Mike Burns-isms 2011-01-14 01:17:25 -05:00
Joe Ferris
ae6386f8ce Removed duplicate files 2011-01-13 18:05:16 -05:00
Joe Ferris
b291659f29 Vim configuration 2011-01-13 17:54:08 -05:00