Sudhakar Chandra [linux-list] <03/07/02 11:19 -0700>:
> Use 'map!' in addition to 'map' to enable auto save during edit mode. In
> fact, I have numerous such mappings in my .vimrc for various types of files
> I edit. For example:
>
> map! ;if if () {^[o}^[k$2hi
>
> Now, when I'm editing code and type ';if' in insert/edit mode, it
> automagically inserts the following lines:
>
> if () {
> }
>
> and places my cursor between the paranthesis (i.e. () ). Very helpful in
> helping me not forget closing curly braces for blocks and such.
yes, this is another reason for sticking with vim :o), the ";" before the
"if" is really a nice idea. i do all my coding in verilog and have some
useful abbrevations for verilog. perhaps we can have some page where we share
our .vimrc files, i think the abbrevations will be usefull to a lot of us.
and since we are discussing vim, there is a pretty good spell checking macro
as well called "zengspchk.vim", i got it from the net. it will highlight any
spelling errors in your vim editor. if i'm not mistaken, there is a way for vim
to check the extention of a file and accordingly use a predefined set of
macros for it. but i don't know how to do this yet.
mario
--
The opinions expressed in this mail are mine and may not reflect
those of my employer
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help