Skip to content

Can I make the commands even simpler? #1

Description

@Jaymon

I think this Stack Overflow answer might have a technique for me to make my commands even easier to do

Specifically this part:

If the comments are indented as in the OP's question, then you can anchor your deletion like this:
:norm ^x
which means "go to the first non-space character, then delete one character".

And...

Commenting with #:

  1. visually select the text rows (using V as usual)
  2. :norm i#
    This inserts "#" at the start of each line. Note that when you type : the range will be filled in, so it will really look like :'<,'>norm i#

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions