Herbert Liechti wrote:

works only in vim/gvim !

o point cursor to the first line which should be commented out
o enter visual mode (key v)
o move cursor down to the end of the block (i.e. enter % sign
   for quick jumping to the closing bracket)
o enter command mode with : (you see something like this:
   :'<,'> when entering the : ) then enter the substitution
   command s/^/%/ and hit enter

you substitute the beginning of the line with the %-sign in the
visual block

Or:

- go to the start of the first line to comment out
- enter visual block mode (ctrl-v)
- move the cursor down
- type shift-i to insert at the start of the line
- type %
- escape out of insert mode

commenting out is done the same way expect the substitution
command is :s/^%//

ctrl-v, select the comment characters, press d


                 Graham


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to