Sudhakar Chandra wrote:
>
> 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.
>
Uh, Oh ... !
I was using "joe" for my little c/c++ development in Linux. But I think I
have to re-consider "vim" now !
This "map" feature seems to be marvelous ! I am successfully experimenting
with other small macro substitution, as well !
Have to dig more in details, for vim features. If vim can compile &
execute c/c++ code also then it will be an iceing on the cake !
----
"Binand Raj S." wrote:
>
> Try this to save and quit while in edit mode itself (using the Thaths
> notation):
>
> imap <ctl-v><F2> <space><ctl-v><ctl-[> <:w!q><ctrl-v><enter>
>
> (imap - a mapping that works in insert mode)
>
Yes, indeed ! This thread seems to be very resourseful for me !
Thanks to all of you !
----
Raju Mathur wrote:
>
> Ouch! And people say vi is simpler than Emacs!
>
> <g,d&r>
>
Well, setting-up some-thing is diff than using it. ;-)
Secondly majority of Indian women wear Sarees, even if it seems to be a
tedious job. Like-wise people conversent with Wordstar prefer joe. In short,
convention & large user base might have made this diff btw "vim" & "emacs" .
Only my little brain bit ! No flames expected. :-)
-----
Noufal Ibrahim wrote:
>
> Anything that ceasess to stay in the foreground. Editor keys should
> become an unconscious skill and as long as emacs and vim are
> both free software, who am I to argue? ;)
>
Like Hindi cinema ! Who cares abt the story & direction, as long as the
movie is box-office hit !! ;-)
-----
Suresh Ramasubramanian wrote:
>
> http://www.dotfiles.com perhaps?
>
On the dot ! Good contributions from Archan, Suresh etc Gurus !
Also I got a .vimrc authored by [EMAIL PROTECTED], for C
programming, and what I was searching for a long time.
Why you were in background for such a long time , on this thread ? :-)
Thanks, really !
-----
Rajesh wrote:
>
> These macros are in vim-common rpm.
>
> Just append to your /etc/vimrc whatever macros you want for syntax
> highlighting.
>
> I have added syntax highlighting for html, mutt, javascript and php.
>
~~snip~~
Please let me know, if you have any-thing ready for C/C++ syntax
high-lighting - of your own creation !
If yes, can you send me copy of yr .muttrc file ?
Regards & thanks to all!
~ Pat
-------------------------------------------------------
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