Is it possible using NERD-commenter to uncomment a multiline block under the cursor without selecting the entire block visually first?
If no, are there any better plugins, that can do the job?
Here is an example:
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.1</version>
</dependency>
</dependencies>
Commenting out first dependency
tag using leadercm I get
<dependencies>
<!--<dependency>
<groupId>org.jboss.logmanager</groupId>
| <artifactId>log4j-jboss-logmanager</artifactId>
<version>1.1.1.Final-redhat-1</version>
<scope>provided</scope>
</dependency>-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.1</version>
</dependency>
</dependencies>
Now I place the cursor inside the commented out tag (like showed above) and want to uncomment the tag.
- leadercu - does nothing
- leadercspace - comments out the current line breaking XML format.
vaC
and then uncomment it with<leader>cu