--Boundary- VswMdkqtBxIXMVTRRbljpTnsNFW Content-Type: text/plain Content-Transfer-Encoding: 8bit On Sun, 11 Jul 1999, you wrote: >Hi all, Hi you, > >correction of my poor English... to send a mail to correct my English of a previous post, I have gave up for a long time. I have recognized, that if I try to correct my English, new errors waiting to creep in. ;-))))) So I only correct it, if it may cause misinterpretion :-) > >> From: NAKAMURA, Hiroshi [mailto:nakahiro / sarion.co.jp] >> Sent: Sunday, July 11, 1999 2:38 PM > >> BTW, I like vi for editing. I never use ruby-mode.el. :-) > >'I never use' -> 'I have never use' ! I think that "I never use" can also be correct, as it may imply that you have used it, but will not again (perhaps you don't like it...) Whereas "I have never use" is wrong (the error has waited to creep in, you remember?) as it should be: "I have never used". > >Of cource I like vi, but I use Emacs based editors for editing Japanese. >I do not hate Emacs and ruby-mode.el ! Oh! I very like Emacs AND vi. :-) The first I use for extensive editing, the second, for the "daily work". :-) [...] >Then, why I did not use it? Hum... >Because I did not write a large program which requires such >intelligent editing supports, maybe. But you can also have that colors too ;-) There is an editor called `vim' (stands for vi improved). I have attached two files on that mail. After installation of vim, you could put `ruby.vim' into (default: /usr/local) .../share/vim/syntax. There is also a file called `syntax.vim'. You can apply the patch contained in `syntax.vim.patch' attachement. After startup, you have a exellent vi with GUI (prog is called `gvim') and all functions of standard vi, and much more. But it can color Ruby! :-))) The URL is: http://www.vim.org > >NaHi \cle PS: The files in the attachements are probably also valueable for those who wants to use vi to editing Ruby sources. --Boundary- VswMdkqtBxIXMVTRRbljpTnsNFW Content-Type: text/x-s-lang; name uby.vim" Content-Transfer-Encoding: quoted-printable Content-Description: Syntax Mode for Ruby Content-Disposition: attachment; filename="ruby.vim" " Vim syntax file " Language: ruby " Maintainer: Clemens Hintze <c.hintze / gmx.net> " Last change: 28. Nov. 1998 " Remove any old syntax stuff hanging around syn clear syn keyword rubyStatement BEGIN END begin break end ensure syn keyword rubyStatement next redo rescue retry return yield syn keyword rubyStatement fail raise syn keyword rubyRepeat do for until while syn keyword rubyConditional case else elsif if then unless when syn keyword rubyOperator and in not or defined syn region rubyString start=+'+ end=+'+ skip=+\\\\\|\\'+ syn region rubyString start=+"+ end=+"+ skip=+\\\\\|\\"+ syn region rubyPOD start=+^=begin+ end=+=end+ syn keyword rubyFunction alias class def lambda module undef proc syn keyword rubyPreCondit require include syn keyword rubyConstant false nil self true super syn match rubyComment "#.*$" contains=rubyTodo syn match rubyGlobVar "\$[a-z_][a-zA-Z0-9_]*" syn match rubyInstVar "\@[a-z_][a-zA-Z0-9_]*" syn match rubySpecialVar "$[^A-Za-z_]" syn match rubyConstant "\(\@\|\$\|\<\)[A-Z][a-zA-Z0-9_]*" syn keyword rubyTodo contained TODO FIXME XXX syn sync lines=100 if !exists("did_ruby_syntax_inits") let did_ruby_syntax_inits = 1 " The default methods for highlighting. Can be overridden later hi link rubyStatement Statement hi link rubyConditional Conditional hi link rubyRepeat Repeat hi link rubyString String hi link rubyOperator Operator hi link rubyFunction Function hi link rubyPreCondit PreCondit hi link rubyConstant Constant hi link rubyComment Comment hi link rubyInstVar Special hi link rubyGlobVar PreProc hi link rubyConstant Constant hi link rubyPOD Comment hi link rubyTodo Todo endif let b:current_syntax = "ruby" " vim: ts=3 --Boundary- VswMdkqtBxIXMVTRRbljpTnsNFW Content-Type: text/plain; name yntax.vim.patch" Content-Transfer-Encoding: quoted-printable Content-Description: Patch to introduce Ruby Content-Disposition: attachment; filename="syntax.vim.patch" *** /usr/local/share/vim/syntax/syntax.vim_sv Mon Oct 19 00:46:58 1998 --- /usr/local/share/vim/syntax/syntax.vim Sun Jul 11 11:41:37 1999 *************** *** 234,239 **** --- 234,242 ---- " Rexx au BufNewFile,BufRead *.rexx,*.rex,*.r so $VIM/syntax/rexx.vim + " Ruby + au BufNewFile,BufRead *.rb so $VIM/syntax/ruby.vim + " S-lang au BufNewFile,BufRead *.sl so $VIM/syntax/slang.vim *************** *** 381,386 **** --- 384,390 ---- 50amenu Syntax.PQRST.Prolog :so $VIM/syntax/prolog.vim 50amenu Syntax.PQRST.Python :so $VIM/syntax/python.vim 50amenu Syntax.PQRST.Rexx :so $VIM/syntax/rexx.vim + 50amenu Syntax.PQRST.Ruby :so $VIM/syntax/ruby.vim 50amenu Syntax.PQRST.S-lang :so $VIM/syntax/slang.vim 50amenu Syntax.PQRST.Sather :so $VIM/syntax/sather.vim 50amenu Syntax.PQRST.SDL :so $VIM/syntax/sdl.vim --Boundary- VswMdkqtBxIXMVTRRbljpTnsNFW--