AIX 5.3使用vi打开大文件抱错ex: 0602-101

本文介绍在AIX系统中使用vi编辑器打开大型文件时遇到内存不足的问题及解决方案,包括vi编辑器的限制说明,并提供了一种绕过行数限制的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AIX上用vi打开一个很大的文件,抱错:

      ex: 0602-101 Out of memory saving lines for undo

man vi 发现vi的限制

       The following list provides the maximum limits of the vi editor. These counts assume single-byte characters.
       *    256 characters per global command list
       *    2048 characters in a shell escape command
       *    128 characters in a string-valued option
       *    30 characters in a tag name
       *    128 map macros with 2048 characters total
       *    1,048,560 lines silently enforced
       *    The macro name and the macro text are limited to 100 characters.  Note: The vi editor supports a maximum of 2 GB edit
            buffer.

 

wc -l xxx.log

使用数字大于该行就可以

越过这个限制,可以使用 vi -y 9999999 xxx.log

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值