Eiffel indenting in Vim 6 
Author Message
 Eiffel indenting in Vim 6

Hi all,

Does anybody know of an eiffel indentation script for vim?

Thanks
--
Justin Bedo
The Australian National University



Fri, 02 Apr 2004 07:37:07 GMT  
 Eiffel indenting in Vim 6
Justin -

I've been able to get auto-indenting to work pretty well by:

inserting this line into ~/.vimrc (You'll need to figure out the equivalent
if you're using Windows):

" Auto-load ~/.eiffel.vim for new and existing *.e files:
au BufNewFile,BufReadPost *.e so $HOME/.eiffel.vim

Then the $HOME/.eiffel.vim file contains:

" Auto-indentation for appropriate Eiffel key words
set smartindent
set cinwords=is,local,do,if,else,elseif,from,until,loop,export,rescue,require,ensure,check,invariant,once,redefine,rename,select,undefine,inspect,when

Hopefully this will work for you, too.


Quote:

>Hi all,

>Does anybody know of an eiffel indentation script for vim?

>Thanks
>--
>Justin Bedo
>The Australian National University


--
Jim Cochrane

[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]



Fri, 16 Apr 2004 01:33:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Indenting Ruby in Vim

2. Auto-indent python in vim?

3. vim/python indent problem with parenthesis

4. Module indent.py - Indents and dedents bocks of text, %(<key>)s-style block indent

5. ATTN: Vim/Ruby users. Updates to indent/ruby.vim and ftplugin/ruby.vim.

6. Diffs for GNU Emacs Eiffel mode to fix comment indenting

7. Code for new GNU Emacs Eiffel mode with better indenting (long)

8. eiffel.vim : indentation!

9. New Eiffel syntax file for VIM

10. [VIM] Version 2.0 of VIlisp.vim

11. Indenting source code and commenting with Dolphin

12. emacs indenting for awk

 

 
Powered by phpBB® Forum Software