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

  • Home
  • SEARCH
  • 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 881263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:13:56+00:00 2026-05-15T12:13:56+00:00

I am using PuTTY and the vi editor. If I select five lines using

  • 0

I am using PuTTY and the vi editor. If I select five lines using my mouse and I want to delete those lines, how can I do that?

Also, how can I select the lines using my keyboard as I can in Windows where I press Shift and move the arrows to select the text? How can I do that in vi?

  • 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-15T12:13:56+00:00Added an answer on May 15, 2026 at 12:13 pm

    I am using PuTTY and the vi editor. If I select five lines using my mouse and I want to delete those lines, how can I do that?

    Forget the mouse. To remove 5 lines, either:

    • Go to the first line and type d5d (dd deletes one line, d5d deletes 5 lines) ~or~
    • Type Shift-v to enter linewise selection mode, then move the cursor down using j (yes, use h, j, k and l to move left, down, up, right respectively, that’s much more efficient than using the arrows) and type d to delete the selection.

    Also, how can I select the lines using my keyboard as I can in Windows where I press Shift and move the arrows to select the text? How can I do that in vi?

    As I said, either use Shift-v to enter linewise selection mode or v to enter characterwise selection mode or Ctrl-v to enter blockwise selection mode. Then move with h, j, k and l.

    I suggest spending some time with the Vim Tutor (run vimtutor) to get more familiar with Vim in a very didactic way.

    See also

    • This answer to What is your most productive shortcut with Vim? (one of my favorite answers on SO).
    • Efficient Editing With vim
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using putty in windows, you can save sessions that connect to a certain host
How i can edit php.ini file from cpanel.I am using putty and vi editor
I want to send messages from android phone by using putty. Is that possible?
I connect to our Ubuntu production server using PuTTy. I want to reindex a
At the moment I'm developing using a simple editor, putty, and a VirtualBox instance
I'm using PuTTY to run: mysql> SELECT * FROM sometable; sometable has many fields
I am using Putty to connect to a remote server. What I want to
I'm using Ubuntu on the server and I'm using Putty to access. I want
I have been using Putty on Windows XP and used the .ppk file to
I'm using PuTTY to access my BSD file server and I have several terminal

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.