About: Remap join to merge comment lines   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

When editing code with comments in it (C code, Vim script, Python, or whatever) and you want to join two comment lines together, you may notice some annoying behavior. For example: " This is a Vim scripting language comment. " I want to join this line " to this one Performing a J on the second line will result in: " This is a Vim scripting language comment. " I want to join this line " to this one " I wanted " to join " a lot " of lines " but this happened! Luckily, Vim allows you to remap J to override the default functionality. But how to do it?

AttributesValues
rdfs:label
  • Remap join to merge comment lines
rdfs:comment
  • When editing code with comments in it (C code, Vim script, Python, or whatever) and you want to join two comment lines together, you may notice some annoying behavior. For example: " This is a Vim scripting language comment. " I want to join this line " to this one Performing a J on the second line will result in: " This is a Vim scripting language comment. " I want to join this line " to this one " I wanted " to join " a lot " of lines " but this happened! Luckily, Vim allows you to remap J to override the default functionality. But how to do it?
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1552(xsd:integer)
Category
  • Usage
Author
  • Fritzophrenic
Subpage
  • /200804
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1553(xsd:integer)
NEXT
  • 1554(xsd:integer)
abstract
  • When editing code with comments in it (C code, Vim script, Python, or whatever) and you want to join two comment lines together, you may notice some annoying behavior. For example: " This is a Vim scripting language comment. " I want to join this line " to this one Performing a J on the second line will result in: " This is a Vim scripting language comment. " I want to join this line " to this one Ugh! Now you'll need to delete the comment leader and any internal indentation from the line! It gets even worse when giving J a count, or when using J in a large visual selection. You could end up with something like this: " I wanted " to join " a lot " of lines " but this happened! Luckily, Vim allows you to remap J to override the default functionality. But how to do it?
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] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software