Hi,

Am Freitag, 02. Jun 2006, 22:27:42 +0800 schrieb Eric Luo:
> I want to comment a new line or comment an existing line at the end of
> the current line. In Emacs, I have M-; to do the job.
> 
> Could anyone tell me that weather the similar functionality existed?

Something like this:

  :noremap <F2> 
A<space><c-r>=printf(&commentstring,"\r")<cr><c-o>0$<esc>-$Jcf$<space>

I don't know how to map it to Alt-;.

If you're lucky, the filetype plugin did set the
'commentstring' option correctly.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

Reply via email to