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
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
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
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