Re: How to comment a line in vim?

2006-06-04 Thread Bertram Scharpf
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

How to comment a line in vim?

2006-06-02 Thread 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?

Re: How to comment a line in vim?

2006-06-02 Thread A.J.Mechelynck
Eric Luo wrote: 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? A line starting with (zero or more whitespace and) a double quote is, in a Vim

Re: How to comment a line in vim?

2006-06-02 Thread Charles E Campbell Jr
Eric Luo wrote: 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? I have no idea what emacs does, and I suspect that there's quite a few folks who

Re: How to comment a line in vim?

2006-06-02 Thread stri ker
With about the same amount of keystrokes you could use : a \t ; a - for append to end of line then tab then whatever comment character you want. If you record this to a macro you can use @ [char] to add the comment char to the end of any line no matter where you are in the line. Kevin On