RailsEditor 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
data/README.rails-editor CHANGED
@@ -26,10 +26,18 @@ any vim user in a pinch that has to make console edits (ssh or what-not).
26
26
 
27
27
  On startup you'll have a variety of windows set up for rails development.
28
28
  Many will have VIM sessions in File Browser mode, others will be shells dedicated
29
- to a certain task. In Screen 1 you'll have a ./script/console session that
29
+ to a certain task. Screen 0 is for watching logs, screen 1 will run a console that
30
30
  will restart itself on exit. The ide gets more powerful for experienced 'screen'
31
31
  users with split screen modes and other goodies.
32
32
 
33
+ VIM ADDITIONS
34
+ In any ruby file, typing 'def' in insert mode followed by a space will fill in the
35
+ 'end' for you. In .rhtml files, '%=' will make <%= %> and '%%' will make <% -%>.
36
+ Also included is taglist.vim, a nice tidy taglist browser. To enable it in vim,
37
+ simply type :TlistToggle. You must have exuberant ctags installed for this to
38
+ work. To get the help for Tlist, cd to .vim/plugins and open vim, then type
39
+ :helptags and hit enter. You'll then have its help in :help taglist.
40
+
33
41
  SPLIT SCREEN
34
42
 
35
43
  A new caption line will appear when you split screens in 'screen' (ctrl-a S). At
@@ -1242,6 +1242,7 @@ au BufNewFile,BufRead *.rtf setf rtf
1242
1242
 
1243
1243
  " Ruby
1244
1244
  au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec setf ruby
1245
+ au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec iab def def<CR>end<UP>
1245
1246
 
1246
1247
  " ERuby
1247
1248
  au BufNewFile,BufRead *.rhtml setf eruby
@@ -1675,6 +1676,7 @@ au BufNewFile,BufRead [mM]akefile* setf make
1675
1676
 
1676
1677
  " Ruby Makefile
1677
1678
  au BufNewFile,BufRead [rR]akefile* setf ruby
1679
+ au BufNewFile,BufRead [rR]akefile* iab def def<CR>end<UP>
1678
1680
 
1679
1681
  " Mutt setup file
1680
1682
  au BufNewFile,BufRead muttrc*,Muttrc* setf muttrc