15

I want to open just the head of a large file.

I know you can use a shell command (M-! RET head file RET), but I lose helm completion, it opens in a separate window, and the buffer has the uninformative name of *Shell Command Output*.

How can I open large files with head (or something similar)?

Drew
  • 77,472
  • 10
  • 114
  • 243
salotz
  • 1,400
  • 11
  • 21

1 Answers1

20

I suggest you use the vlf package.

It handles opening larges files in chunks and is very performant, I use it regularly to open files ~2gb.

In your config, require vlf-setup to have vlf ask you if you want to use vlf every time you try to open a large file. This means it works with anything that uses find-file such as helm-find-files.

Kaushal Modi
  • 25,651
  • 4
  • 80
  • 183
Jordon Biondo
  • 12,455
  • 2
  • 43
  • 62