Lemmy Today
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
paequ2 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
19
message-square

PSA: How to paste large amounts of text in Vim

paequ2 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!

  • zygo_histo_morpheus@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    you can just do :r path/to/file directly

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: !vim@lemmy.sdf.org

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
  • 24 users / week
  • 26 users / month
  • 64 users / 6 months
  • 3 local subscribers
  • 1.16K subscribers
  • 37 Posts
  • 50 Comments
  • Modlog
  • mods:
  • Max Ficco@lemmy.sdf.org
  • Max Ficco@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org