Dr . Sharukh K . R . Pavri . <[EMAIL PROTECTED]>  wrote --
[snip]
> Thanks, that worked. btw what does the whole line mean ?
> I don't understand the last bit i.e.:
> 
> +':set wrap'+\`awk '/^$/ {print i+2; exit} {i++}' %s\` %s"
> 
> can someone please explain ?

The first part (set wrap) is to set the wrap mode.  That means that long
lines will be broken as you type past a certain column.  The second part
is +`awk ......`.  The awk portion evaluates to the line number of first
line after the first blank line in the file.  In case of mail, if you
have edit_headers on, this will the first line of mail body.  Thus, for
example, the second option will evaluate to something like '+13'
(assuming you have 11 header lines and a blank after that in that
particular mail).  This will prompt vim to advance the cursor by those
many lines allowing you type your mail right there.

That's what I decode from the script, but, I am no expert in vim.  I use
emacs for editing (No, I don't hate vim, so no holy wars, please :).

Regards,
Abhay.
-- 
Abhay Ghaisas
Staff Engineer, Global Software Group
Motorola India Electronics Ltd., Senate, Bangalore, India.

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to