What I wanted to know is could the same functionality have been achieved by a better sequence of commands? Can an experienced 'vimmer' do better?
There is a comments plugin that I yanked off the Internet a while ago that can do the same for several different languages.
From the file header:
" comments.vim " " \] changes lines from code to comments and vice versa. " Works in normal mode with an optional count and in visual mode " " Currently setup for fortran, tex, bib, metapost, vim, maple, gnuplot, " make, sh, awk, sed, perl, python, btm, dosbatch and dosini filetypes. " " There is single line comment support for the html, css, cpp and c " filetypes but it is not pretty for blocks of comments. " " Maintainer: Ajit J. Thakkar (ajit AT unb.ca) " URL: http://www.unb.ca/chem/ajit/vim.htm " Last Change: 2003 July 21 Let me know if the above link is broken. I can post the remaining 60 lines of the innards. Hope this helps. Senthil.
