我尝试过 linum
和 nlinum
。在超过100k行的文件上,两者的性能都很差。
$ for x in {1.100000}; do echo $x; done > 100k.txt
$ emacs -q 100k.txt
M-x load-library linum
M-x linum-mode
M-> ;; it's not too bad to go to end of file
M-< ;; now this completely locks up emacs
与像joe这样的编辑器相同的操作是瞬时完成的。
除了在大文件中关闭行号(正是您想要使用行号导航的文件类型——我指的是查找连接的Javascript文件中的错误行),还有其他解决方案吗?
或者只需使用不同的编辑器?
(set-window-margins (selected-window) 2)
)。 - Barry Kelly