sponsor Vim development Vim logo Vim Book Ad

AppendComment.vim : Append comment at end of line

 script karma  Rating 26/8, Downloaded by 1701  Comments, bugs, improvements  Vim wiki

created by
Johannes Tanzler
 
script type
utility
 
description
One thing I liked in Emacs is the ability to insert comments
at the end of line using <M-;>.
This script tries to achieve the same for Vim.
If there's already a comment, it's aligned.

Maybe, your language is supported.
If not, it's easy to add new ones.

This script was inspired by Meikel Brandmeyers EnhCommentify.vim: vimscript#23
 
install details
Put it in your ~/.vim/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
AppendComment.vim 0.02 2001-09-19 6.0 Johannes Tanzler Bugfixing
If line is empty, the comment is
inserted according to current
indentation.
AppendComment.vim 0.01 2001-09-12 6.0 Johannes Tanzler Initial upload
ip used for rating: 3.144.189.177

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github