Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to VIM - Vi [email protected] • 3 months ago

PSA: How to paste large amounts of text in Vim

message-square
6
fedilink
17
message-square

PSA: How to paste large amounts of text in Vim

@[email protected] to VIM - Vi [email protected] • 3 months ago
message-square
6
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!

  • china🇨🇳
    link
    fedilink
    3•3 months ago

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

VIM - Vi [email protected]

[email protected]
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

  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 11 users / 6 months
  • 1 subscriber
  • 39 Posts
  • 154 Comments
  • Modlog
  • mods:
  • Max Ficco
  • Max Ficco
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org