RailsEditor 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +5 -0
- data/README.rails-editor +40 -8
- data/rails/.vim/filetype.vim +2 -2
- metadata +7 -4
data/Changelog
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
20060814 Added more usage help in README.rails-editor TJV.
|
2
|
+
20060814 Added filetype handling for .rjs files in vim. KWB
|
3
|
+
20060813 Fixed typo in Rakefile allowing it to read svk_info. KWB
|
4
|
+
20060401 Made the editor file executable after install. TJV
|
5
|
+
20051104 Made a quick fix to the .screenrc.code.erb to make the svnwork window work. KWB
|
data/README.rails-editor
CHANGED
@@ -24,23 +24,55 @@ BASIC USAGE
|
|
24
24
|
This is most likely only useful for console junkies, but may help for
|
25
25
|
any vim user in a pinch that has to make console edits (ssh or what-not).
|
26
26
|
|
27
|
-
On startup you'll have a variety of windows set up for rails
|
27
|
+
On startup (./script/editor) you'll have a variety of windows set up for rails dev.
|
28
28
|
Many will have VIM sessions in File Browser mode, others will be shells dedicated
|
29
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
|
+
GENERAL SCREEN TIPS
|
34
|
+
Screen is a terminal interface which allows one to have multiple virtual terminals
|
35
|
+
within it. Think of it as a window manager for console. It accepts commands by
|
36
|
+
first typing the escape key then the screen command. The default escape key for
|
37
|
+
screen is CTRL-a, generally represented as C-a in the screen manpage, so we'll do
|
38
|
+
so here. Common commands follow:
|
39
|
+
|
40
|
+
* To switch to a certain screen window: C-a #
|
41
|
+
where # is the number of the window
|
42
|
+
you wish to go to.
|
43
|
+
* To switch to the last window you were in: C-a a
|
44
|
+
* To split the screen horizontally: C-a S
|
45
|
+
* To cycle between screen splits: C-a <TAB>
|
46
|
+
* To go into scrollback/copy mode: C-a <ESC>
|
47
|
+
* Moving in copy/scrollback mode: Arrows or hjkl, plus PGUP/PGDN and
|
48
|
+
general vim movement
|
49
|
+
(ctrl-u pgup, ctrl-d pgdn)
|
50
|
+
* Start Copying Text in copy/scrollback mode: <ENTER>
|
51
|
+
* Moving/Highlighting once copying has started: Same as in copy/scrollback mode
|
52
|
+
* Copy highlighed selection to screen's buffer: <ENTER>
|
53
|
+
* Copy highlighted to screen's buffer and
|
54
|
+
the /tmp/screen-exchange file: >
|
55
|
+
* Paste the contents of buffer to terminal: C-a ]
|
56
|
+
|
57
|
+
See man screen for a full descriptiong. Some things we like to do is change the
|
58
|
+
default escape key (to Ctrl-f, Ctrl-j, Ctrl-y) to something more friendly as a
|
59
|
+
keystroke. This is accomplished by C-a :escape ^Yy<ENTER>, in the case of Ctrl-y.
|
60
|
+
You can set this permanently by modifying config/.screenrc.code.erb.
|
61
|
+
|
33
62
|
VIM ADDITIONS
|
34
|
-
In any ruby file, typing 'def' in insert mode followed by a space will fill in the
|
35
|
-
'end' for you.
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
63
|
+
* In any ruby file, typing 'def' in insert mode followed by a space will fill in the
|
64
|
+
'end' for you.
|
65
|
+
* Syntax highlighting has been added for .rjs files which isn't presently part of vim.
|
66
|
+
* In .rhtml files, '%= ' will make <%= %> and '%% ' will make <% -%>.
|
67
|
+
* Also included is taglist.vim, a nice tidy taglist browser. To enable it in vim,
|
68
|
+
simply type :TlistToggle. You must have exuberant ctags installed for this to
|
69
|
+
work.
|
70
|
+
* To get the help for Tlist, cd to .vim/plugins and open vim, then type
|
71
|
+
:helptags and hit enter. You'll then have its help in :help taglist.
|
40
72
|
|
41
73
|
SPLIT SCREEN
|
42
74
|
|
43
|
-
A new caption line will appear when you split screens in 'screen' (
|
75
|
+
A new caption line will appear when you split screens in 'screen' (C-a S). At
|
44
76
|
this time there is no way to remove the hardstatus global statusline automatically,
|
45
77
|
so i've bound F8 and F9 to turning on and off (respectively) the hardstatus line
|
46
78
|
to avoid duplicate statusbars.
|
data/rails/.vim/filetype.vim
CHANGED
@@ -1241,8 +1241,8 @@ au BufNewFile,BufRead *.rst setf rst
|
|
1241
1241
|
au BufNewFile,BufRead *.rtf setf rtf
|
1242
1242
|
|
1243
1243
|
" Ruby
|
1244
|
-
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec setf ruby
|
1245
|
-
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec iab def def<CR>end<UP>
|
1244
|
+
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec,*.rjs setf ruby
|
1245
|
+
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec,*.rjs iab def def<CR>end<UP>
|
1246
1246
|
|
1247
1247
|
" ERuby
|
1248
1248
|
au BufNewFile,BufRead *.rhtml setf eruby
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: RailsEditor
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.0.25
|
7
|
+
date: 2006-08-15 00:00:00 -05:00
|
8
8
|
summary: A screen + vim IDE setup for editing a Rails tree
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -25,6 +25,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- Rubyists.com (bougyman,deathsyn,trey)
|
30
31
|
files:
|
@@ -36,12 +37,13 @@ files:
|
|
36
37
|
- tests/ts_rails_editor.rb
|
37
38
|
- lib/rails-editor.rb
|
38
39
|
- rails/.vim/syntax
|
39
|
-
- rails/.vim/filetype.vim
|
40
40
|
- rails/.vim/plugin
|
41
|
+
- rails/.vim/filetype.vim
|
41
42
|
- rails/.vim/syntax/eruby.vim
|
42
43
|
- rails/.vim/plugin/taglist.vim
|
43
44
|
- rails/.vimrc
|
44
45
|
- rails/config/.screenrc.code.erb
|
46
|
+
- Changelog
|
45
47
|
- README.rails-editor
|
46
48
|
- INSTALL
|
47
49
|
test_files:
|
@@ -49,6 +51,7 @@ test_files:
|
|
49
51
|
rdoc_options: []
|
50
52
|
|
51
53
|
extra_rdoc_files:
|
54
|
+
- Changelog
|
52
55
|
- README.rails-editor
|
53
56
|
- INSTALL
|
54
57
|
executables:
|