Permalink
Browse files

adding vim files

  • Loading branch information...
1 parent d21a34e commit 3e0f0ae9e615f3c52bd33de86e1c00220faf32e6 @ryanb committed Mar 3, 2010
Showing with 22,907 additions and 0 deletions.
  1. +6 −0 gvimrc
  2. +35 −0 vim/after/plugin/snipMate.vim
  3. +1,155 −0 vim/autoload/fuf.vim
  4. +211 −0 vim/autoload/fuf/bookmark.vim
  5. +176 −0 vim/autoload/fuf/buffer.vim
  6. +133 −0 vim/autoload/fuf/callbackfile.vim
  7. +135 −0 vim/autoload/fuf/callbackitem.vim
  8. +168 −0 vim/autoload/fuf/changelist.vim
  9. +128 −0 vim/autoload/fuf/dir.vim
  10. +137 −0 vim/autoload/fuf/file.vim
  11. +119 −0 vim/autoload/fuf/givencmd.vim
  12. +119 −0 vim/autoload/fuf/givendir.vim
  13. +117 −0 vim/autoload/fuf/givenfile.vim
  14. +202 −0 vim/autoload/fuf/help.vim
  15. +178 −0 vim/autoload/fuf/jumplist.vim
  16. +131 −0 vim/autoload/fuf/line.vim
  17. +130 −0 vim/autoload/fuf/mrucmd.vim
  18. +156 −0 vim/autoload/fuf/mrufile.vim
  19. +150 −0 vim/autoload/fuf/quickfix.vim
  20. +182 −0 vim/autoload/fuf/tag.vim
  21. +162 −0 vim/autoload/fuf/taggedfile.vim
  22. +4,680 −0 vim/autoload/rails.vim
  23. +433 −0 vim/autoload/snipMate.vim
  24. +124 −0 vim/colors/railscasts.vim
  25. +1,222 −0 vim/doc/NERD_tree.txt
  26. +1,149 −0 vim/doc/fuf.jax
  27. +1,562 −0 vim/doc/fuf.txt
  28. +1,133 −0 vim/doc/rails.txt
  29. +286 −0 vim/doc/snipMate.txt
  30. +218 −0 vim/doc/surround.txt
  31. +432 −0 vim/doc/tags
  32. +143 −0 vim/doc/tags-ja
  33. +10 −0 vim/ftplugin/html_snip_helper.vim
  34. +4,059 −0 vim/plugin/NERD_tree.vim
  35. +177 −0 vim/plugin/fuf.vim
  36. +340 −0 vim/plugin/rails.vim
  37. +247 −0 vim/plugin/snipMate.vim
  38. +628 −0 vim/plugin/surround.vim
  39. +7 −0 vim/snippets/_.snippets
  40. +66 −0 vim/snippets/autoit.snippets
  41. +110 −0 vim/snippets/c.snippets
  42. +30 −0 vim/snippets/cpp.snippets
  43. +190 −0 vim/snippets/html.snippets
  44. +78 −0 vim/snippets/java.snippets
  45. +74 −0 vim/snippets/javascript.snippets
  46. +54 −0 vim/snippets/mako.snippets
  47. +184 −0 vim/snippets/objc.snippets
  48. +91 −0 vim/snippets/perl.snippets
  49. +216 −0 vim/snippets/php.snippets
  50. +86 −0 vim/snippets/python.snippets
  51. +420 −0 vim/snippets/ruby.snippets
  52. +28 −0 vim/snippets/sh.snippets
  53. +7 −0 vim/snippets/snippet.snippets
  54. +92 −0 vim/snippets/tcl.snippets
  55. +115 −0 vim/snippets/tex.snippets
  56. +32 −0 vim/snippets/vim.snippets
  57. +58 −0 vim/snippets/zsh.snippets
  58. +19 −0 vim/syntax/snippet.vim
  59. +177 −0 vimrc
View
6 gvimrc
@@ -0,0 +1,6 @@
+set guioptions-=T " hide toolbar
+set lines=55 columns=100
+
+colorscheme railscasts
+
+set guifont=DejaVu\ Sans\ Mono:h13
@@ -0,0 +1,35 @@
+" These are the mappings for snipMate.vim. Putting it here ensures that it
+" will be mapped after other plugins such as supertab.vim.
+if !exists('loaded_snips') || exists('s:did_snips_mappings')
+ finish
+endif
+let s:did_snips_mappings = 1
+
+ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
+snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
+ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
+snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
+ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
+
+" The default mappings for these are annoying & sometimes break snipMate.
+" You can change them back if you want, I've put them here for convenience.
+snor <bs> b<bs>
+snor <right> <esc>a
+snor <left> <esc>bi
+snor ' b<bs>'
+snor ` b<bs>`
+snor % b<bs>%
+snor U b<bs>U
+snor ^ b<bs>^
+snor \ b<bs>\
+snor <c-x> b<bs><c-x>
+
+" By default load snippets in snippets_dir
+if empty(snippets_dir)
+ finish
+endif
+
+call GetSnippets(snippets_dir, '_') " Get global snippets
+
+au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
+" vim:noet:sw=4:ts=4:ft=vim
Oops, something went wrong.

11 comments on commit 3e0f0ae

Should we expect a Vim screencast in the future?!

@ghost

ghost replied Mar 3, 2010

To do that, use railscasts theme for vim: http://www.vi-improved.org/color_sampler_pack/railscasts.vim.cpp.html ;)

Owner

ryanb replied Mar 3, 2010

I don't have plans to do a vim screencast, but I'm not completely off to the idea. I suppose it depends on demand and how well I like vim. ;)

ktec replied Mar 3, 2010

I'd definitely love you to do one Ryan!!!

+1 would love to see a vim railscast.

I'd watch.

You might be interested in http://vimcasts.org/. It's a somewhat new project, but there screencasts are pretty well done and provide a solid introduction to vim.

I think it would be great if you just use Vim for the railscasts. Just gg=G to reindent a whole file or good automatic indentation would remove the time to reindent from the screencast.

screenshot plzz 👍 also for zsh if you can :-)

Please sign in to comment.