Tuesday, September 11, 2012

Create a 1,000,000 byte file with VIM.

I am trying to create a 1,000,000 byte file with VIM. The following
has VIM using 100% of _both_ my CPUs (Intel DuoCore) for almost two
hours before I killed it:
ia<esc>1000000.

/i assume that the holdup is not that 1000000 'a' characters are being
written, but rather that insert mode is being inserted and left
1000000 times. Is there a better way, other than just doing the
operation 1000 times, then copying that another 1000 times?

Thanks.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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

No comments: