From b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 2 Feb 2016 23:10:43 +0100 Subject: Improve large file support Disable absolute line numbers for large files (currently anything bigger than 32MiB). This speeds up moving around with for example nn% since no new lines need to be calculated. Of course movements like :nn will be unaffected. The optimizations can be disabled by explicitly enabling absolute line numbers as in :set number --- ui.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 314bc9d..76de366 100644 --- a/ui.h +++ b/ui.h @@ -25,6 +25,7 @@ enum UiOption { UI_OPTION_CURSOR_LINE = 1 << 7, UI_OPTION_STATUSBAR = 1 << 8, UI_OPTION_ONELINE = 1 << 9, + UI_OPTION_LARGE_FILE = 1 << 10, }; enum UiStyles { -- cgit v1.2.3