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 6688713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:26:06+00:00 2026-05-26T05:26:06+00:00

Just a question about copy/paste workflow in gVim. Right now I’m working on a

  • 0

Just a question about copy/paste workflow in gVim.

Right now I’m working on a document. I want to select some lines of code and copy and paste. I’m using gVim (Windows).

If I use Control + C and Control + V, gVim takes sometimes 2, 3 seconds to paste…

The other way is using, Shift + v (right, now I’m in visual mode), then I keep the Shift key pressed and drag my selection with the mouse. Now I can copy with ‘y’ or ‘c’ and paste with ‘p’. This is faster, but I have to keep the Shift key pressed.

Is there a way to use the mouse to select text in visual mode without keeping the Shift key pressed? I want to use y/d/p instead of slow Control + c and Control + v. Is there a better workflow or setup that I should try?

Thanks,

[]’s

Mateus

  • 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-26T05:26:06+00:00Added an answer on May 26, 2026 at 5:26 am

    Stay away from using CTRL–C/V and your mouse in vim, or at least until you’re familiar with vim‘s way of text handling.

    —

    SHIFT–V to enter visual line mode

    enter image description here

    Press 3j to go down 3 lines, or press j 3 times

    enter image description here

    y to yank/copy, x to cut, p to paste after cursor, P to paste before cursor.

    enter image description here

    Using hjkl will improve your workflow greatly as you don’t have to move your hands from the typing position to the arrows and the mouse.

    There are a couple of ways to yank multiple lines without entering visual mode. One of which is to type <action><number><direction>. For example, y3j means to yank from your current row to 3 rows down.

    If you want to yank the entire paragraph or sentence you’re in, type yip (yank IN paragraph) or yis (yank IN sentence) respectively. You can also do yi" (yank IN ") or ya" (yank AROUND ") to yank everything that’s surrounded by " on your current position.

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

Sidebar

Related Questions

Just a quick question about how you would go about implementing this. I want
Just a quick question about using select() . I'm using select() to read from
Just got a question about generics, why doesn't this compile when using a generic
Just a general question about what the best practice is: public void Foo() {
Just a quick question about ReadWriteLocks in Java (specifically the ReentrantReadWriteLock implementation) as I
Just a quick question about how parameters are passed in Java... ... if ((index
Just asked a question about linking Boost libraries in the make file. Thanks to
Just a quick question about best practice in MVC development. Let's say that I've
I just posted a question about whether WPF is a good choice for a
I just had a question about aligning two expand-collapse boxes and got an answer

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.