The Lemmy Club
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
paequ2@lemmy.today to VIM - Vi IMproved@lemmy.sdf.org · 2 days ago

PSA: How to paste large amounts of text in Vim

message-square
message-square
6
link
fedilink
17
message-square

PSA: How to paste large amounts of text in Vim

paequ2@lemmy.today to VIM - Vi IMproved@lemmy.sdf.org · 2 days ago
message-square
6
link
fedilink

https://stackoverflow.com/questions/18258561/pasting-a-huge-amount-of-text-into-vim-is-slow/79633075

I recently ran into this. I didn’t realize that the swpfile slowed down pastes.

I was trying to paste 50kb of text in Vim, but it kept getting stuck and I had to kill -9 it.

But, then I ran :set noswapfile and the paste was instant! TIL!

  • whoareu@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    Thank you so much for sharing it, I didn’t know either!

VIM - Vi IMproved@lemmy.sdf.org

vim@lemmy.sdf.org

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

For Vim enthusiasts and anyone interested in Vim/Neovim!

“VIM is the greatest editor since the stone chisel.” - Dr. Jose Unpingco

#HJKL

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 22 users / week
  • 24 users / month
  • 45 users / 6 months
  • 1 local subscriber
  • 1.16K subscribers
  • 36 Posts
  • 11 Comments
  • Modlog
  • mods:
  • Max Ficco@lemmy.sdf.org
  • Max Ficco@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org