Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6943803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:12:14+00:00 2026-05-27T13:12:14+00:00

In a CSS file, this line is in more than 5 rules. border: 1px

  • 0

In a CSS file, this line is in more than 5 rules.

border: 1px solid black;

I want to comment this line like this:

/*border: 1px solid black;*/

Is there a shortcut to do this comment for all 5 occurrence?

Can I assign a key to comment a single line or a block of lines?

I don’t want to search and replace this only line, i want to set a key so that when i hover a line and press that key, that line will be commented or selecting a line or selecting a block of line, if i press that key, that line or block of line will be commented.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:12:15+00:00Added an answer on May 27, 2026 at 1:12 pm

    I would suggest using a macro for this. Macros are automatically saved by Vim and available across sessions.

    To record a macro type: q<letter><commands>q. Where <letter> is any letter from a-z and indicates the register in which the macro will be saved. After that you simply type the commands you wish to be recorded and finally press q again to stop recording.

    In your case you could do the following. Press q, then press a to select the a register, next enter insert mode and enter the /* and */ at the beginning and end of a line. Press q again to stop recording.

    Now simply move the cursor to any line and press @a to execute the macro on that line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change more than a line of a file. It is a
I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat
BACKGROUND-IMAGE: url(../images/feedback_trans_tab.png); _background-image: url(../images/feedback_tab_ie6.png) I've seen code like this in a css file feedback_tab_ie6.png
Putting this at the top of your CSS file: * { margin: 0; padding:
This question is about organizing the actual CSS directives themselves within a .css file.
I would like to build a mobile app, brewed from nothing more but html/css
I found this piece of code in a CSS file I inherited, but I
using this line $file_move = move_uploaded_file($_FILES['uploadedfile']['tmp_name'], plugins_url('/css', __FILE__)); returns: move_uploaded_file(http://localhost/ * ) [function.move-uploaded-file]: failed
My CSS file is acutally a PHP file which is served with content-type text/css
I am making a CSS file for an XML document. I need to insert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.