我经常打开大文件,通过日志查找信息。由于在我的情况下所有行都有时间戳,并且我确定信息存在于整个文件的哪个部分是我感兴趣的。例如,
因此,要以这种方式快速导航,即按百分比进行导航 - 中是否有任何现有功能可用vim
?
X T*_*ian 49
对不起,我的回答很简短,但是
只需输入 50%
*N%*
{count}% Go to {count} percentage in the file, on the first
non-blank in the line |linewise|. To compute the new
line number this formula is used:
({count} * number-of-lines + 99) / 100
See also 'startofline' option. {not in Vi}
Run Code Online (Sandbox Code Playgroud)