OpenLink Software

Usage stats on Comment/UnComment visually selected text

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Add the following to your vimrc. It will add two menu items under the "Edit" menu in gVim. The function calls can be mapped to keystrokes if desired. "Menu items for Commenting and Un-Commenting code amenu 20.435 &Edit.-SEP4- : amenu Edit.Comment `:let ll=line("."):call Comment(fl, ll) amenu Edit.UnComment `:let ll=line("."):call UnComment(fl, ll) "Function for commenting a block of Visually selected text function Comment(fl, ll) let i=a:fl let comment="//" while i<=a:ll let cl=getline(i) let cl2=comment.cl call setline(i, cl2) let i=i+1 endwhile endfunction "Function for Un-Commenting a block of Visually selected text function UnComment(fl, ll) let i=a:fl let comment="//" while i<=a:ll let cl=getline(i) let cl2=substitute(cl, "//", "", "") call s

Graph IRICount
http://dbkwik.webdatacommons.org15
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software