On 2022-03-17 01:41, Ni Va wrote:
> Is it possible to open a Large File Vim but just only few beginning
> lines of it, edit one of these 50 first lines and then save and
> quit ?
I don't think it's readily doable inside vim, but if I had such a
situation, I'd split it into the two portions like
$ sed -n -e '1,50w head.txt' -e '51,$w tail.txt' bigfile.txt
I could then edit head.txt easily and write it back out. I can then
recombine the pieces when done:
$ cat head.txt tail.txt > edited_bigfile.txt
-tim
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220317070124.59ad6b1f%40bigbox.attlocal.net.
No comments:
Post a Comment